aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--llimits.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llimits.h b/llimits.h
index a76c13ed..d0394831 100644
--- a/llimits.h
+++ b/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 */