better handling of fail template in returning char

This commit is contained in:
Jonatan "jaw" Wallmander 2016-10-06 09:53:49 +02:00
parent 5d223b36ee
commit 330956a47d

View File

@ -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++];
}