fix: unable to compile

This commit is contained in:
Renge 2022-02-18 23:35:42 -05:00
parent 799994c0b3
commit 5a494e53c5

View File

@ -904,16 +904,16 @@ int argo_write_string(ARGO_STRING *s, FILE *f)
}
else
{
if (c <= 0xff)
if (*c <= 0xff)
{
fprintf(f, "%c", *c);
}
else if (c <= 0xfff)
else if (*c <= 0xfff)
{
fprintf(f, "\\u0%x", c);
fprintf(f, "\\u0%x", *c);
}
else {
fprintf(f, "\\u%x", c);
fprintf(f, "\\u%x", *c);
}
}
break;