update lua 5.4.2

This commit is contained in:
Cloud Wu
2020-11-16 10:51:36 +08:00
parent c7dc8751c7
commit 9eb37198ea
8 changed files with 64 additions and 77 deletions

View File

@@ -326,7 +326,8 @@ typedef l_uint32 Instruction;
/* exponentiation */
#if !defined(luai_numpow)
#define luai_numpow(L,a,b) ((void)L, l_mathop(pow)(a,b))
#define luai_numpow(L,a,b) \
((void)L, (b == 2) ? (a)*(a) : l_mathop(pow)(a,b))
#endif
/* the others are quite standard operations */