aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-12 17:23:02 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-02-12 17:23:02 -0200
commitbf6d2ccf92768be938aaac0a0bfc87833b793e8f (patch)
tree0d1455129fd35ea93d46a583ba814716e66fd79f /lobject.c
parentb82ff713e321f4b65b2dc41fc1fe97633f7b197d (diff)
downloadlua-bf6d2ccf92768be938aaac0a0bfc87833b793e8f.tar.gz
lua-bf6d2ccf92768be938aaac0a0bfc87833b793e8f.tar.bz2
lua-bf6d2ccf92768be938aaac0a0bfc87833b793e8f.zip
details
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lobject.c b/lobject.c
index b68f7e98..45682c50 100644
--- a/lobject.c
+++ b/lobject.c
@@ -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));