diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-29 11:27:55 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-29 11:27:55 -0200 |
commit | a1c37f834ae433e05409cd30bd9450d5e8707e7a (patch) | |
tree | 9d390a4e0a826563720b7df45d18297655a3cf5d /luaconf.h | |
parent | 1a7868c1d55592a59f6ffa75ad1bd6330282b7fe (diff) | |
download | lua-a1c37f834ae433e05409cd30bd9450d5e8707e7a.tar.gz lua-a1c37f834ae433e05409cd30bd9450d5e8707e7a.tar.bz2 lua-a1c37f834ae433e05409cd30bd9450d5e8707e7a.zip |
detail (macro 'luai_numidiv' uses 'luai_numdiv' to compute the division)
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.236 2014/12/19 13:31:12 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.237 2014/12/26 14:44:44 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 | */ |
@@ -476,7 +476,7 @@ | |||
476 | #include <math.h> | 476 | #include <math.h> |
477 | 477 | ||
478 | /* floor division (defined as 'floor(a/b)') */ | 478 | /* floor division (defined as 'floor(a/b)') */ |
479 | #define luai_numidiv(L,a,b) ((void)L, l_mathop(floor)((a)/(b))) | 479 | #define luai_numidiv(L,a,b) ((void)L, l_mathop(floor)(luai_numdiv(L,a,b))) |
480 | 480 | ||
481 | /* | 481 | /* |
482 | ** module: defined as 'a - floor(a/b)*b'; the previous definition gives | 482 | ** module: defined as 'a - floor(a/b)*b'; the previous definition gives |