diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-02-20 11:08:56 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-02-20 11:08:56 -0300 |
| commit | b559aed2d38c6eafcc624da8599b6ac52e11f17c (patch) | |
| tree | fd16b63c0f2a146e33a7a5de92b2be51a8c6f64e | |
| parent | d0c038da07ee85c70cf891d803824fd7fd1832ff (diff) | |
| download | lua-b559aed2d38c6eafcc624da8599b6ac52e11f17c.tar.gz lua-b559aed2d38c6eafcc624da8599b6ac52e11f17c.tar.bz2 lua-b559aed2d38c6eafcc624da8599b6ac52e11f17c.zip | |
'l_tg' was renamed to 'l_mathop' and this use was not corrected at
the time
| -rw-r--r-- | llimits.h | 4 | ||||
| -rw-r--r-- | lobject.c | 4 |
2 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llimits.h,v 1.101 2012/10/02 17:32:44 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.102 2013/01/29 16:00:40 roberto Exp roberto $ |
| 3 | ** Limits, basic types, and some other `installation-dependent' definitions | 3 | ** Limits, basic types, and some other `installation-dependent' definitions |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -282,7 +282,7 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; }; | |||
| 282 | #include <math.h> | 282 | #include <math.h> |
| 283 | 283 | ||
| 284 | #define luai_hashnum(i,n) { int e; \ | 284 | #define luai_hashnum(i,n) { int e; \ |
| 285 | n = l_tg(frexp)(n, &e) * (lua_Number)(INT_MAX - DBL_MAX_EXP); \ | 285 | n = l_mathop(frexp)(n, &e) * (lua_Number)(INT_MAX - DBL_MAX_EXP); \ |
| 286 | lua_number2int(i, n); i += e; } | 286 | lua_number2int(i, n); i += e; } |
| 287 | 287 | ||
| 288 | #endif | 288 | #endif |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.c,v 2.56 2012/08/16 17:34:28 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.57 2013/01/29 16:00:40 roberto Exp roberto $ |
| 3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -149,7 +149,7 @@ static lua_Number lua_strx2number (const char *s, char **endptr) { | |||
| 149 | *endptr = cast(char *, s); /* valid up to here */ | 149 | *endptr = cast(char *, s); /* valid up to here */ |
| 150 | ret: | 150 | ret: |
| 151 | if (neg) r = -r; | 151 | if (neg) r = -r; |
| 152 | return l_tg(ldexp)(r, e); | 152 | return l_mathop(ldexp)(r, e); |
| 153 | } | 153 | } |
| 154 | 154 | ||
| 155 | #endif | 155 | #endif |
