Fix string.char() range check on x64.

This commit is contained in:
Mike Pall 2010-05-30 12:29:55 +02:00
parent 926f688cd0
commit fa673eb179
4 changed files with 2095 additions and 2094 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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

File diff suppressed because it is too large Load Diff