Fix incorrect log return value
The function must return a SDL_LogPriority, but returned an enum sc_log_level. (It was harmless because this specific return should never happen, as asserted.)
This commit is contained in:
parent
8ff07e0c88
commit
c4323df976
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ convert_log_level_to_sdl(enum sc_log_level level) {
|
||||||
return SDL_LOG_PRIORITY_ERROR;
|
return SDL_LOG_PRIORITY_ERROR;
|
||||||
default:
|
default:
|
||||||
assert(!"unexpected log level");
|
assert(!"unexpected log level");
|
||||||
return SC_LOG_LEVEL_INFO;
|
return SDL_LOG_PRIORITY_INFO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue