Skip to content

Commit

Permalink
Fix #11141 uint -> uint32_t
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottPJones committed May 8, 2015
1 parent 27d22d7 commit 3193847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/support/utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ int u8_isvalid(const char *iStr, size_t iLength)
if (pnt == pend) return 0; // Last byte can't be > 127
byt = pnt[-1];
// Must be between 0xc2 and 0xf4 inclusive to be valid
if (((uint)byt - 0xc2) > (0xf4-0xc2)) return 0;
if (((uint32_t)byt - 0xc2) > (0xf4-0xc2)) return 0;
if (byt < 0xe0) { // 2-byte sequence
// Must have valid continuation character
if ((*pnt++ & 0xc0) != 0x80) return 0;
Expand Down

0 comments on commit 3193847

Please sign in to comment.