diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-12 17:23:02 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-12 17:23:02 -0200 |
commit | bf6d2ccf92768be938aaac0a0bfc87833b793e8f (patch) | |
tree | 0d1455129fd35ea93d46a583ba814716e66fd79f /lobject.c | |
parent | b82ff713e321f4b65b2dc41fc1fe97633f7b197d (diff) | |
download | lua-bf6d2ccf92768be938aaac0a0bfc87833b793e8f.tar.gz lua-bf6d2ccf92768be938aaac0a0bfc87833b793e8f.tar.bz2 lua-bf6d2ccf92768be938aaac0a0bfc87833b793e8f.zip |
details
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.15 1999/01/04 13:37:07 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 1.16 1999/01/13 19:08:37 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 | */ |
@@ -112,7 +112,7 @@ double luaO_str2d (char *s) { /* LUA_NUMBER */ | |||
112 | s++; | 112 | s++; |
113 | sig = -1; | 113 | sig = -1; |
114 | } | 114 | } |
115 | if (!isdigit((unsigned char)*s)) return -1; /* no digit in expoent part? */ | 115 | if (!isdigit((unsigned char)*s)) return -1; /* no digit in the exponent? */ |
116 | do { | 116 | do { |
117 | e = 10*e + (*(s++)-'0'); | 117 | e = 10*e + (*(s++)-'0'); |
118 | } while (isdigit((unsigned char)*s)); | 118 | } while (isdigit((unsigned char)*s)); |