lua

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

commit b559aed2d38c6eafcc624da8599b6ac52e11f17c
parent d0c038da07ee85c70cf891d803824fd7fd1832ff
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed, 20 Feb 2013 11:08:31 -0300

'l_tg' was renamed to 'l_mathop' and this use was not corrected at
the time

Diffstat:
Mllimits.h | 4++--
Mlobject.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/llimits.h b/llimits.h @@ -1,5 +1,5 @@ /* -** $Id: llimits.h,v 1.101 2012/10/02 17:32:44 roberto Exp roberto $ +** $Id: llimits.h,v 1.102 2013/01/29 16:00:40 roberto Exp roberto $ ** Limits, basic types, and some other `installation-dependent' definitions ** See Copyright Notice in lua.h */ @@ -282,7 +282,7 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; }; #include <math.h> #define luai_hashnum(i,n) { int e; \ - n = l_tg(frexp)(n, &e) * (lua_Number)(INT_MAX - DBL_MAX_EXP); \ + n = l_mathop(frexp)(n, &e) * (lua_Number)(INT_MAX - DBL_MAX_EXP); \ lua_number2int(i, n); i += e; } #endif diff --git a/lobject.c b/lobject.c @@ -1,5 +1,5 @@ /* -** $Id: lobject.c,v 2.56 2012/08/16 17:34:28 roberto Exp roberto $ +** $Id: lobject.c,v 2.57 2013/01/29 16:00:40 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ @@ -149,7 +149,7 @@ static lua_Number lua_strx2number (const char *s, char **endptr) { *endptr = cast(char *, s); /* valid up to here */ ret: if (neg) r = -r; - return l_tg(ldexp)(r, e); + return l_mathop(ldexp)(r, e); } #endif