diff options
| -rw-r--r-- | llimits.h | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -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 */ |
