Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 committed Nov 20, 2024
1 parent 135e984 commit cf966e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ksf/ksConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ namespace ksf
if (value == 0)
return {"0"};

unsigned int uvalue{static_cast<unsigned int>(value)};
char buffer[8];
int pos{8};
unsigned int uvalue{static_cast<unsigned int>(value)}, pos{8};

while (uvalue != 0)
{
int nibble{uvalue & 0xf};
unsigned int nibble{uvalue & 0xf};
buffer[--pos] = (nibble < 10) ? ('0' + nibble) : ('a' + (nibble - 10));
uvalue >>= 4;
}
Expand Down

0 comments on commit cf966e3

Please sign in to comment.