diff options
author | Mike Pall <mike> | 2015-01-03 15:04:38 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2015-01-03 15:04:38 +0100 |
commit | 054e6abe37450344e20b373ec326055071029e9b (patch) | |
tree | d3abbe61e643f4f59797d2aea24cc3a0643df53b /src/lib_bit.c | |
parent | a13dfd66c3427f9cc94044f261a526042b0d02f5 (diff) | |
download | luajit-054e6abe37450344e20b373ec326055071029e9b.tar.gz luajit-054e6abe37450344e20b373ec326055071029e9b.tar.bz2 luajit-054e6abe37450344e20b373ec326055071029e9b.zip |
Add LJ_FR2 mode: Two-slot frame info.
Diffstat (limited to 'src/lib_bit.c')
-rw-r--r-- | src/lib_bit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib_bit.c b/src/lib_bit.c index ffdc29c1..25731900 100644 --- a/src/lib_bit.c +++ b/src/lib_bit.c | |||
@@ -33,7 +33,7 @@ static int bit_result64(lua_State *L, CTypeID id, uint64_t x) | |||
33 | { | 33 | { |
34 | GCcdata *cd = lj_cdata_new_(L, id, 8); | 34 | GCcdata *cd = lj_cdata_new_(L, id, 8); |
35 | *(uint64_t *)cdataptr(cd) = x; | 35 | *(uint64_t *)cdataptr(cd) = x; |
36 | setcdataV(L, L->base-1, cd); | 36 | setcdataV(L, L->base-1-LJ_FR2, cd); |
37 | return FFH_RES(1); | 37 | return FFH_RES(1); |
38 | } | 38 | } |
39 | #else | 39 | #else |
@@ -56,7 +56,7 @@ LJLIB_ASM(bit_tobit) LJLIB_REC(bit_tobit) | |||
56 | { | 56 | { |
57 | #if LJ_HASFFI | 57 | #if LJ_HASFFI |
58 | CTypeID id = 0; | 58 | CTypeID id = 0; |
59 | setintV(L->base-1, (int32_t)lj_carith_check64(L, 1, &id)); | 59 | setintV(L->base-1-LJ_FR2, (int32_t)lj_carith_check64(L, 1, &id)); |
60 | return FFH_RES(1); | 60 | return FFH_RES(1); |
61 | #else | 61 | #else |
62 | lj_lib_checknumber(L, 1); | 62 | lj_lib_checknumber(L, 1); |