mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Import more Musl math
This commit is contained in:
parent
6d52664aa7
commit
3027d67037
48 changed files with 1749 additions and 180 deletions
|
@ -306,7 +306,7 @@ static struct DecodeJson Parse(struct lua_State *L, const char *p,
|
|||
goto BadUnicode;
|
||||
}
|
||||
// UTF-8
|
||||
if (c < 0x7f) {
|
||||
if (c <= 0x7f) {
|
||||
w[0] = c;
|
||||
i = 1;
|
||||
} else if (c <= 0x7ff) {
|
||||
|
@ -346,7 +346,7 @@ static struct DecodeJson Parse(struct lua_State *L, const char *p,
|
|||
goto StringFailureWithReason;
|
||||
}
|
||||
}
|
||||
break;
|
||||
unreachable;
|
||||
StringFailureWithReason:
|
||||
luaL_pushresultsize(&b, 0);
|
||||
lua_pop(L, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue