Skip to content

Commit

Permalink
Fix incorrect log return value
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
rom1v committed Jun 2, 2020
1 parent 8ff07e0 commit c4323df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ convert_log_level_to_sdl(enum sc_log_level level) {
return SDL_LOG_PRIORITY_ERROR;
default:
assert(!"unexpected log level");
return SC_LOG_LEVEL_INFO;
return SDL_LOG_PRIORITY_INFO;
}
}

Expand Down

0 comments on commit c4323df

Please sign in to comment.