aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lobject.c b/lobject.c
index 11be7ad9..bdbd6cb5 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.55 2011/11/30 19:30:16 roberto Exp roberto $ 2** $Id: lobject.c,v 2.56 2012/08/16 17:34:28 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*/
@@ -104,7 +104,7 @@ static int isneg (const char **s) {
104 104
105static lua_Number readhexa (const char **s, lua_Number r, int *count) { 105static lua_Number readhexa (const char **s, lua_Number r, int *count) {
106 for (; lisxdigit(cast_uchar(**s)); (*s)++) { /* read integer part */ 106 for (; lisxdigit(cast_uchar(**s)); (*s)++) { /* read integer part */
107 r = (r * 16.0) + cast_num(luaO_hexavalue(cast_uchar(**s))); 107 r = (r * cast_num(16.0)) + cast_num(luaO_hexavalue(cast_uchar(**s)));
108 (*count)++; 108 (*count)++;
109 } 109 }
110 return r; 110 return r;
@@ -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 ldexp(r, e); 152 return l_tg(ldexp)(r, e);
153} 153}
154 154
155#endif 155#endif