diff options
| author | Li Jin <dragon-fly@qq.com> | 2021-01-05 16:48:53 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2021-01-05 16:48:53 +0800 |
| commit | 71b9532659abb531bd1597d88451426dcc895824 (patch) | |
| tree | c9b50856b37f759c9a31e1a6e761e77b51996fa6 /src/lua/llimits.h | |
| parent | e3a31f9945053d8e8d9e4ef3d2e4c9abe563cff2 (diff) | |
| download | yuescript-71b9532659abb531bd1597d88451426dcc895824.tar.gz yuescript-71b9532659abb531bd1597d88451426dcc895824.tar.bz2 yuescript-71b9532659abb531bd1597d88451426dcc895824.zip | |
update Lua.
Diffstat (limited to 'src/lua/llimits.h')
| -rw-r--r-- | src/lua/llimits.h | 3 |
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 */ |
