aboutsummaryrefslogtreecommitdiff
path: root/loslib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-19 17:16:22 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-19 17:16:22 -0200
commitd103312661d4d2428516924658154df09b3168a4 (patch)
treedc2318e0bb95abd9776b57ec73f2f9a0c01586e5 /loslib.c
parent2e8f8a18e4ddbb3bebd8e81e276fc37bce02e422 (diff)
downloadlua-d103312661d4d2428516924658154df09b3168a4.tar.gz
lua-d103312661d4d2428516924658154df09b3168a4.tar.bz2
lua-d103312661d4d2428516924658154df09b3168a4.zip
details (typos in comments)
Diffstat (limited to 'loslib.c')
-rw-r--r--loslib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loslib.c b/loslib.c
index 0522a512..b043f679 100644
--- a/loslib.c
+++ b/loslib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: loslib.c,v 1.58 2015/07/04 16:35:14 roberto Exp roberto $ 2** $Id: loslib.c,v 1.59 2015/07/06 15:16:51 roberto Exp roberto $
3** Standard Operating System library 3** Standard Operating System library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -215,7 +215,7 @@ static int getfield (lua_State *L, const char *key, int d, int delta) {
215 if (!isnum) { /* field is not a number? */ 215 if (!isnum) { /* field is not a number? */
216 if (t != LUA_TNIL) /* some other value? */ 216 if (t != LUA_TNIL) /* some other value? */
217 return luaL_error(L, "field '%s' not an integer", key); 217 return luaL_error(L, "field '%s' not an integer", key);
218 else if (d < 0) /* abssent field; no default? */ 218 else if (d < 0) /* absent field; no default? */
219 return luaL_error(L, "field '%s' missing in date table", key); 219 return luaL_error(L, "field '%s' missing in date table", key);
220 res = d; 220 res = d;
221 } 221 }