diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib_math.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_math.c b/src/lib_math.c index 87ec2883..225630d0 100644 --- a/src/lib_math.c +++ b/src/lib_math.c | |||
@@ -57,7 +57,7 @@ LJLIB_ASM(math_log) LJLIB_REC(math_log) | |||
57 | #else | 57 | #else |
58 | x = lj_vm_log2(x); y = 1.0 / lj_vm_log2(y); | 58 | x = lj_vm_log2(x); y = 1.0 / lj_vm_log2(y); |
59 | #endif | 59 | #endif |
60 | setnumV(L->base-1, x*y); /* Do NOT join the expression to x / y. */ | 60 | setnumV(L->base-1-LJ_FR2, x*y); /* Do NOT join the expression to x / y. */ |
61 | return FFH_RES(1); | 61 | return FFH_RES(1); |
62 | } | 62 | } |
63 | return FFH_RETRY; | 63 | return FFH_RETRY; |