* device/lib/time.c (mktime): fixed bug reported by Bert Thomas
authorbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 9 Mar 2004 08:26:36 +0000 (08:26 +0000)
committerbernhardheld <bernhardheld@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Tue, 9 Mar 2004 08:26:36 +0000 (08:26 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3256 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
device/lib/time.c

index 4a1c7c6c240c12db29b12b9673369b48746f8e71..7c9881c89902823fb7a97e1e162aa880dc7b4521 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
+
+       * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
+
 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
 
        * src/pic16/gen.c (genSkip),
index f1fc5473d620ac5b2fc2d33af0dbdd70f0152b65..576e7688747b1335a5525b4704b6d03192a31a69 100755 (executable)
@@ -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;