diff --git a/ui/helpers.c b/ui/helpers.c index db71972..5d71275 100644 --- a/ui/helpers.c +++ b/ui/helpers.c @@ -75,7 +75,8 @@ char * hex_to_bitmap(char hex_digit) { char *bitmap = malloc(5 * sizeof(char)); bitmap[4] = '\0'; - for(int i = 3; i >= 0; i--) { + int i; + for(i = 3; i >= 0; i--) { bitmap[i] = digit % 2 ? '1' : '0'; digit /= 2; }