diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-04-29 14:12:12 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-04-29 14:12:12 -0300 |
| commit | 8fff05f6d00802fa47614d681f1c7a17694856e8 (patch) | |
| tree | 8b8c4ef8e94ce9d08e9c013e50858b48b37ec268 | |
| parent | 9b9becf38402a1787c4f723c705e2e3baa374573 (diff) | |
| download | lua-8fff05f6d00802fa47614d681f1c7a17694856e8.tar.gz lua-8fff05f6d00802fa47614d681f1c7a17694856e8.tar.bz2 lua-8fff05f6d00802fa47614d681f1c7a17694856e8.zip | |
integer division operates only on integers
| -rw-r--r-- | luaconf.h | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.177 2013/04/25 13:52:13 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.178 2013/04/26 13:08:29 roberto Exp roberto $ |
| 3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -435,7 +435,6 @@ | |||
| 435 | /* the following operations need the math library */ | 435 | /* the following operations need the math library */ |
| 436 | #if defined(lobject_c) || defined(lvm_c) | 436 | #if defined(lobject_c) || defined(lvm_c) |
| 437 | #include <math.h> | 437 | #include <math.h> |
| 438 | #define luai_numidiv(L,a,b) (l_mathop(floor)((a)/(b))) | ||
| 439 | #define luai_nummod(L,a,b) ((a) - l_mathop(floor)((a)/(b))*(b)) | 438 | #define luai_nummod(L,a,b) ((a) - l_mathop(floor)((a)/(b))*(b)) |
| 440 | #define luai_numpow(L,a,b) (l_mathop(pow)(a,b)) | 439 | #define luai_numpow(L,a,b) (l_mathop(pow)(a,b)) |
| 441 | #endif | 440 | #endif |
