Treat signed-unsigned conversions as errors.

This commit is contained in:
Zhihao Yuan
2017-01-18 16:16:07 -06:00
parent 835f2f4a79
commit 3cc77d5d63
16 changed files with 37 additions and 35 deletions

View File

@@ -267,7 +267,7 @@ static unsigned inline decode(unsigned* state, unsigned* codep, unsigned byte) {
*codep = (*state != UTF8_ACCEPT) ?
(byte & 0x3fu) | (*codep << 6) :
(0xff >> type) & (byte);
(0xffu >> type) & (byte);
*state = utf8d[256 + *state + type];
return *state;