From 900bdd57613048bafc02848b2d89bbae58ce658c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 26 Dec 2014 12:46:07 -0200 Subject: [PATCH] detail (to avoid warnings) --- loslib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/loslib.c b/loslib.c index a79119cb..1d39b2b2 100644 --- a/loslib.c +++ b/loslib.c @@ -1,5 +1,5 @@ /* -** $Id: loslib.c,v 1.52 2014/11/02 19:33:33 roberto Exp roberto $ +** $Id: loslib.c,v 1.53 2014/12/10 15:42:42 roberto Exp roberto $ ** Standard Operating System library ** See Copyright Notice in lua.h */ @@ -100,8 +100,8 @@ #else /* }{ */ /* ISO C definitions */ -#define l_gmtime(t,r) ((void)r, gmtime(t)) -#define l_localtime(t,r) ((void)r, localtime(t)) +#define l_gmtime(t,r) ((void)(r)->tm_sec, gmtime(t)) +#define l_localtime(t,r) ((void)(r)->tm_sec, localtime(t)) #endif /* } */