diff options
author | Mike Pall <mike> | 2011-03-10 02:13:43 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-03-10 02:13:43 +0100 |
commit | 889368e921a11e2abb3769e2c1f395174e83112d (patch) | |
tree | a0280bec2142380ce13b1afc2d8e17fcd65e29e9 /src/lj_ir.c | |
parent | bfce3c1127fd57fe0c935c92bcf45b4737041edd (diff) | |
download | luajit-889368e921a11e2abb3769e2c1f395174e83112d.tar.gz luajit-889368e921a11e2abb3769e2c1f395174e83112d.tar.bz2 luajit-889368e921a11e2abb3769e2c1f395174e83112d.zip |
Get rid of the remaining silly cast macros from Lua.
Diffstat (limited to 'src/lj_ir.c')
-rw-r--r-- | src/lj_ir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_ir.c b/src/lj_ir.c index 721cfd0f..64467758 100644 --- a/src/lj_ir.c +++ b/src/lj_ir.c | |||
@@ -267,7 +267,7 @@ TRef lj_ir_kint64(jit_State *J, uint64_t u64) | |||
267 | static int numistrueint(lua_Number n, int32_t *kp) | 267 | static int numistrueint(lua_Number n, int32_t *kp) |
268 | { | 268 | { |
269 | int32_t k = lj_num2int(n); | 269 | int32_t k = lj_num2int(n); |
270 | if (n == cast_num(k)) { | 270 | if (n == (lua_Number)k) { |
271 | if (kp) *kp = k; | 271 | if (kp) *kp = k; |
272 | if (k == 0) { /* Special check for -0. */ | 272 | if (k == 0) { /* Special check for -0. */ |
273 | TValue tv; | 273 | TValue tv; |