C89_BUILD fix

This commit is contained in:
twinaphex 2020-05-24 03:52:23 +02:00
parent 32a4607eb6
commit b5fe162c32
2 changed files with 3 additions and 3 deletions

View File

@ -1679,6 +1679,7 @@ bool gfx_animation_ticker_smooth(gfx_animation_ctx_ticker_smooth_t *ticker)
size_t i;
size_t src_str_len = 0;
size_t spacer_len = 0;
unsigned small_src_char_widths[64] = {0};
unsigned src_str_width = 0;
unsigned spacer_width = 0;
unsigned *src_char_widths = NULL;
@ -1706,7 +1707,6 @@ bool gfx_animation_ticker_smooth(gfx_animation_ctx_ticker_smooth_t *ticker)
if (src_str_len < 1)
goto end;
unsigned small_src_char_widths[64] = {0};
src_char_widths = small_src_char_widths;
if (src_str_len > ARRAY_SIZE(small_src_char_widths))