diff options
Diffstat (limited to 'lcode.c')
-rw-r--r-- | lcode.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -607,7 +607,7 @@ static int luaK_numberK (FuncState *fs, lua_Number r) { | |||
607 | return addk(fs, &o, &o); /* use number itself as key */ | 607 | return addk(fs, &o, &o); /* use number itself as key */ |
608 | else { /* must build an alternative key */ | 608 | else { /* must build an alternative key */ |
609 | const int nbm = l_floatatt(MANT_DIG); | 609 | const int nbm = l_floatatt(MANT_DIG); |
610 | const lua_Number q = l_mathop(ldexp)(1.0, -nbm + 1); | 610 | const lua_Number q = l_mathop(ldexp)(l_mathop(1.0), -nbm + 1); |
611 | const lua_Number k = (ik == 0) ? q : r + r*q; /* new key */ | 611 | const lua_Number k = (ik == 0) ? q : r + r*q; /* new key */ |
612 | TValue kv; | 612 | TValue kv; |
613 | setfltvalue(&kv, k); | 613 | setfltvalue(&kv, k); |