aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-30 18:46:18 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-30 18:46:18 -0200
commita9295a2b8ebca6bb7071c4424fd318afa33ebb9e (patch)
tree545d4d4a72395d20482aae568869c7a96dfdff79 /lobject.c
parentc6fedc92f8b1c3e73d835f7641bffe4b199f0dd1 (diff)
downloadlua-a9295a2b8ebca6bb7071c4424fd318afa33ebb9e.tar.gz
lua-a9295a2b8ebca6bb7071c4424fd318afa33ebb9e.tar.bz2
lua-a9295a2b8ebca6bb7071c4424fd318afa33ebb9e.zip
typos in comments
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 e9e037f7..c7d4c06a 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.120 2017/11/16 13:19:06 roberto Exp roberto $ 2** $Id: lobject.c,v 2.121 2017/11/23 19:29:04 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*/
@@ -193,7 +193,7 @@ static int isneg (const char **s) {
193#define MAXSIGDIG 30 193#define MAXSIGDIG 30
194 194
195/* 195/*
196** convert an hexadecimal numeric string to a number, following 196** convert a hexadecimal numeric string to a number, following
197** C99 specification for 'strtod' 197** C99 specification for 'strtod'
198*/ 198*/
199static lua_Number lua_strx2number (const char *s, char **endptr) { 199static lua_Number lua_strx2number (const char *s, char **endptr) {
@@ -268,7 +268,7 @@ static const char *l_str2dloc (const char *s, lua_Number *result, int mode) {
268** Convert string 's' to a Lua number (put in 'result'). Return NULL 268** Convert string 's' to a Lua number (put in 'result'). Return NULL
269** on fail or the address of the ending '\0' on success. 269** on fail or the address of the ending '\0' on success.
270** 'pmode' points to (and 'mode' contains) special things in the string: 270** 'pmode' points to (and 'mode' contains) special things in the string:
271** - 'x'/'X' means an hexadecimal numeral 271** - 'x'/'X' means a hexadecimal numeral
272** - 'n'/'N' means 'inf' or 'nan' (which should be rejected) 272** - 'n'/'N' means 'inf' or 'nan' (which should be rejected)
273** - '.' just optimizes the search for the common case (nothing special) 273** - '.' just optimizes the search for the common case (nothing special)
274** This function accepts both the current locale or a dot as the radix 274** This function accepts both the current locale or a dot as the radix