Skip to content

Commit

Permalink
Review issue sscanf() and hex value #78
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Mar 26, 2020
1 parent 18a32e6 commit b2974f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/raygui.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand All @@ -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':
Expand Down

0 comments on commit b2974f3

Please sign in to comment.