summaryrefslogtreecommitdiff
path: root/src/lj_ir.c
diff options
context:
space:
mode:
authorMike Pall <mike>2011-03-10 02:13:43 +0100
committerMike Pall <mike>2011-03-10 02:13:43 +0100
commit889368e921a11e2abb3769e2c1f395174e83112d (patch)
treea0280bec2142380ce13b1afc2d8e17fcd65e29e9 /src/lj_ir.c
parentbfce3c1127fd57fe0c935c92bcf45b4737041edd (diff)
downloadluajit-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.c2
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)
267static int numistrueint(lua_Number n, int32_t *kp) 267static 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;