aboutsummaryrefslogtreecommitdiff
path: root/src/lua/llimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/llimits.h')
-rw-r--r--src/lua/llimits.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/llimits.h b/src/lua/llimits.h
index a76c13e..d039483 100644
--- a/src/lua/llimits.h
+++ b/src/lua/llimits.h
@@ -326,7 +326,8 @@ typedef l_uint32 Instruction;
326 326
327/* exponentiation */ 327/* exponentiation */
328#if !defined(luai_numpow) 328#if !defined(luai_numpow)
329#define luai_numpow(L,a,b) ((void)L, l_mathop(pow)(a,b)) 329#define luai_numpow(L,a,b) \
330 ((void)L, (b == 2) ? (a)*(a) : l_mathop(pow)(a,b))
330#endif 331#endif
331 332
332/* the others are quite standard operations */ 333/* the others are quite standard operations */