diff options
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.c,v 1.64 2001/02/02 15:13:05 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 1.65 2001/02/20 18:15:33 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 | */ |
@@ -48,7 +48,7 @@ int luaO_str2d (const char *s, lua_Number *result) { /* LUA_NUMBER */ | |||
48 | char *endptr; | 48 | char *endptr; |
49 | lua_Number res = lua_str2number(s, &endptr); | 49 | lua_Number res = lua_str2number(s, &endptr); |
50 | if (endptr == s) return 0; /* no conversion */ | 50 | if (endptr == s) return 0; /* no conversion */ |
51 | while (isspace((unsigned char)*endptr)) endptr++; | 51 | while (isspace(uchar(*endptr))) endptr++; |
52 | if (*endptr != '\0') return 0; /* invalid trailing characters? */ | 52 | if (*endptr != '\0') return 0; /* invalid trailing characters? */ |
53 | *result = res; | 53 | *result = res; |
54 | return 1; | 54 | return 1; |