From b2974f3d289631f4c1545d7fd2360a71f72697a5 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Thu, 26 Mar 2020 18:04:10 +0100 Subject: [PATCH] Review issue sscanf() and hex value #78 --- src/raygui.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index 74639d5..121bf50 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -2943,7 +2943,7 @@ void GuiLoadStyle(const char *fileName) { int controlId = 0; int propertyId = 0; - int propertyValue = 0; + unsigned int propertyValue = 0; while (!feof(rgsFile)) { @@ -2955,7 +2955,7 @@ void GuiLoadStyle(const char *fileName) sscanf(buffer, "p %d %d 0x%x", &controlId, &propertyId, &propertyValue); - GuiSetStyle(controlId, propertyId, propertyValue); + GuiSetStyle(controlId, propertyId, (int)propertyValue); } break; case 'f':