mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix string.char() range check on x64.
This commit is contained in:
parent
926f688cd0
commit
fa673eb179
File diff suppressed because it is too large
Load Diff
1551
src/buildvm_x64win.h
1551
src/buildvm_x64win.h
File diff suppressed because it is too large
Load Diff
@ -2027,9 +2027,9 @@ static void build_subroutines(BuildCtx *ctx, int cmov, int sse)
|
||||
| cmp NARGS:RD, 1+1; jne ->fff_fallback // *Exactly* 1 arg.
|
||||
| cmp dword [BASE+4], LJ_TISNUM; ja ->fff_fallback
|
||||
if (sse) {
|
||||
| cvtsd2si RC, qword [BASE]
|
||||
| cmp RC, 255; ja ->fff_fallback
|
||||
| mov TMP2, RC
|
||||
| cvtsd2si RB, qword [BASE]
|
||||
| cmp RB, 255; ja ->fff_fallback
|
||||
| mov TMP2, RB
|
||||
} else {
|
||||
| fld qword [BASE]
|
||||
| fistp TMP2
|
||||
|
1694
src/buildvm_x86.h
1694
src/buildvm_x86.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user