From efeac25fa9d871c62fd8ed98f9741cf22480ccff Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 3 Oct 2024 13:15:25 +0200 Subject: [PATCH] [warnings] fix integer narrowing --- rdtk/librdtk/rdtk_font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdtk/librdtk/rdtk_font.c b/rdtk/librdtk/rdtk_font.c index 4c7ffd6e3..3340d4607 100644 --- a/rdtk/librdtk/rdtk_font.c +++ b/rdtk/librdtk/rdtk_font.c @@ -429,7 +429,7 @@ static int rdtk_font_parse_descriptor_buffer(rdtkFont* font, uint8_t* buffer, si *q = '\0'; errno = 0; { - long val = strtoul(p, NULL, 0); + long val = strtol(p, NULL, 0); if ((errno != 0) || (val < INT32_MIN) || (val > INT32_MAX)) return -1;