mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-12 03:28:58 +08:00
Update parser_utils.cc (#106)
When using isspace(c), c should be an unsigned char given __chvalidator() requires a valid ascii value ( c >= -1 && c <= 255) and throws an error in the case of a signed char value between -128 and -2.
This commit is contained in:
parent
ecdd29e44b
commit
8df1bcd1b6
@ -51,7 +51,7 @@ void SkipWhitespace(DecoderBuffer *buffer) {
|
||||
}
|
||||
|
||||
bool PeekWhitespace(DecoderBuffer *buffer, bool *end_reached) {
|
||||
char c;
|
||||
unsigned char c;
|
||||
if (!buffer->Peek(&c)) {
|
||||
*end_reached = true;
|
||||
return false; // eof reached.
|
||||
|
Loading…
x
Reference in New Issue
Block a user