fix various bugs related to guess number example

This commit is contained in:
Andrew Kelley
2016-01-02 21:56:33 -07:00
parent fb1e3a5be9
commit 1abb4e59be
5 changed files with 25 additions and 17 deletions

View File

@@ -628,7 +628,7 @@ static uint8_t parse_char_literal(ParseContext *pc, Token *token) {
} else if (return_count > 1) {
ast_error(pc, token, "character literal too long");
}
return return_count;
return return_value;
}
static void parse_string_literal(ParseContext *pc, Token *token, Buf *buf, bool *out_c_str,