* device/include/pic16/pic18f*.h: add bit aliases in INTCONbits_t
[fw/sdcc] / device / lib / time.c
old mode 100755 (executable)
new mode 100644 (file)
index f1fc547..8266ab9
@@ -197,8 +197,8 @@ time_t mktime(struct tm *timeptr) {
       }
     }
 
-    seconds+= timeptr->tm_mday-1*60*60*24L;
-    seconds+= timeptr->tm_hour*60*60;
+    seconds+= (timeptr->tm_mday-1)*60*60*24L;
+    seconds+= timeptr->tm_hour*60*60L;
     seconds+= timeptr->tm_min*60;
     seconds+= timeptr->tm_sec;
     return seconds;