]> git.gag.com Git - fw/sdcc/blobdiff - device/lib/time.c
* device/lib/time.c (mktime): fixed bug reported by Bert Thomas
[fw/sdcc] / device / lib / time.c
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;