aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-10-29 09:13:14 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-10-29 09:13:14 -0200
commit4834de84274350268a5b6d81070fee919896fed3 (patch)
tree1d43f682c8a41b9aeca7f68784c1f8b8601864da
parent94043a3a1a3108a9ce52dd135b7847f5e72bd51d (diff)
downloadlua-4834de84274350268a5b6d81070fee919896fed3.tar.gz
lua-4834de84274350268a5b6d81070fee919896fed3.tar.bz2
lua-4834de84274350268a5b6d81070fee919896fed3.zip
comment typo
-rw-r--r--lobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lobject.c b/lobject.c
index 67039640..0c61ac0f 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.40 2010/04/18 13:22:48 roberto Exp roberto $ 2** $Id: lobject.c,v 2.41 2010/10/28 15:39:03 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*/
@@ -116,7 +116,7 @@ static int checkend (const char *s, const char *endptr) {
116int luaO_str2d (const char *s, lua_Number *result) { 116int luaO_str2d (const char *s, lua_Number *result) {
117 char *endptr; 117 char *endptr;
118 *result = lua_str2number(s, &endptr); 118 *result = lua_str2number(s, &endptr);
119 if (checkend(s, endptr)) return 1; /* convertion OK? */ 119 if (checkend(s, endptr)) return 1; /* conversion OK? */
120 *result = cast_num(strtoul(s, &endptr, 0)); /* try hexadecimal */ 120 *result = cast_num(strtoul(s, &endptr, 0)); /* try hexadecimal */
121 return checkend(s, endptr); 121 return checkend(s, endptr);
122} 122}