fix: return error code when met unexpected chars

This commit is contained in:
Renge 2022-02-18 23:11:14 -05:00
parent 19f91c3ea5
commit cdaae370de

View File

@ -227,7 +227,7 @@ int argo_read_string(ARGO_STRING *s, FILE *f)
{
if (argo_is_control(c))
{
print_error_helper();
return print_error_helper();
}
if (c == '"')
{
@ -270,7 +270,7 @@ int argo_read_string(ARGO_STRING *s, FILE *f)
c = argo_get_next_char(f);
if (!argo_is_hex(c))
{
print_error_helper();
return print_error_helper();
}
if (argo_is_digit(c))
{