lua

A copy of the Lua development repository
Log | Files | Refs | README

commit a1c37f834ae433e05409cd30bd9450d5e8707e7a
parent 1a7868c1d55592a59f6ffa75ad1bd6330282b7fe
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 29 Dec 2014 11:27:30 -0200

detail (macro 'luai_numidiv' uses 'luai_numdiv' to compute the division)

Diffstat:
Mluaconf.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/luaconf.h b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.236 2014/12/19 13:31:12 roberto Exp roberto $ +** $Id: luaconf.h,v 1.237 2014/12/26 14:44:44 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -476,7 +476,7 @@ #include <math.h> /* floor division (defined as 'floor(a/b)') */ -#define luai_numidiv(L,a,b) ((void)L, l_mathop(floor)((a)/(b))) +#define luai_numidiv(L,a,b) ((void)L, l_mathop(floor)(luai_numdiv(L,a,b))) /* ** module: defined as 'a - floor(a/b)*b'; the previous definition gives