lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 1e6a559b29dbbafaa90a1035f4a265cde0b5791c
parent 2d2f955763c3ff7bee92ca52043ebf5fb23e72e0
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri,  9 Sep 2005 15:22:24 -0300

does not set isdst when undefined

Diffstat:
Mloslib.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/loslib.c b/loslib.c @@ -1,5 +1,5 @@ /* -** $Id: loslib.c,v 1.11 2005/08/15 14:12:32 roberto Exp roberto $ +** $Id: loslib.c,v 1.12 2005/08/26 17:36:32 roberto Exp roberto $ ** Standard Operating System library ** See Copyright Notice in lua.h */ @@ -93,6 +93,8 @@ static void setfield (lua_State *L, const char *key, int value) { } static void setboolfield (lua_State *L, const char *key, int value) { + if (value < 0) /* undefined? */ + return; /* does not set field */ lua_pushboolean(L, value); lua_setfield(L, -2, key); }