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:
Romain Vimont 2020-06-02 18:18:58 +02:00
parent 8ff07e0c88
commit c4323df976

View file

@ -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;
} }
} }