mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Fix the case where \u<unicode char> could crash the compiler on some platforms.
This commit is contained in:
@@ -609,7 +609,7 @@ static char hex_conv[256] = {
|
||||
|
||||
static inline int char_hex_to_nibble(char c)
|
||||
{
|
||||
return hex_conv[(unsigned)c] - 1;
|
||||
return hex_conv[(unsigned char)c] - 1;
|
||||
}
|
||||
|
||||
static inline bool char_is_hex_or_(char c)
|
||||
|
||||
Reference in New Issue
Block a user