mirror of
https://github.com/dropbox/json11.git
synced 2024-12-21 08:59:12 +08:00
better handling of fail template in returning char
This commit is contained in:
parent
5d223b36ee
commit
330956a47d
@ -435,7 +435,7 @@ struct JsonParser final {
|
||||
char get_next_token() {
|
||||
consume_garbage();
|
||||
if (i == str.size())
|
||||
return (char)fail("unexpected end of input", 0);
|
||||
return fail("unexpected end of input", (char)0);
|
||||
|
||||
return str[i++];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user