Skip to content

Commit 7b9785f

Browse files
committed
C89_BUILD buildfix
1 parent df617a3 commit 7b9785f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

libretro-common/file/config_file.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,10 +983,11 @@ bool config_get_size_t(config_file_t *conf, const char *key, size_t *in)
983983
const struct config_entry_list *entry = config_get_entry(conf, key);
984984

985985
if (entry)
986-
{
986+
{
987+
unsigned long val;
987988
char *end = NULL;
988989
errno = 0;
989-
unsigned long val = (unsigned long)strtoul(entry->value, &end, 0);
990+
val = (unsigned long)strtoul(entry->value, &end, 0);
990991

991992
if (errno != 0 || end == entry->value || *end != '\0')
992993
return false;

0 commit comments

Comments
 (0)