From: bernhardheld Date: Tue, 9 Mar 2004 08:26:36 +0000 (+0000) Subject: * device/lib/time.c (mktime): fixed bug reported by Bert Thomas X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=dee0dec9125c9405676a3a814570710299cedf9d;p=fw%2Fsdcc * device/lib/time.c (mktime): fixed bug reported by Bert Thomas git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3256 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 4a1c7c6c..7c9881c8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-03-09 Bernhard Held + + * device/lib/time.c (mktime): fixed bug reported by Bert Thomas + 2004-03-09 Hans Dorn * src/pic16/gen.c (genSkip), diff --git a/device/lib/time.c b/device/lib/time.c index f1fc5473..576e7688 100755 --- a/device/lib/time.c +++ b/device/lib/time.c @@ -197,7 +197,7 @@ time_t mktime(struct tm *timeptr) { } } - seconds+= timeptr->tm_mday-1*60*60*24L; + seconds+= timeptr->(tm_mday-1)*60*60*24L; seconds+= timeptr->tm_hour*60*60; seconds+= timeptr->tm_min*60; seconds+= timeptr->tm_sec;