* device/lib/time.c (mktime): fixed bug 1334315
[fw/sdcc] / device / lib / time.c
index 11891004ee849e665aae3f665e205a4282ebef63..8266ab9e69880f58a6aa8496e296e26a2d3a6897 100755 (executable)
@@ -198,7 +198,7 @@ time_t mktime(struct tm *timeptr) {
     }
 
     seconds+= (timeptr->tm_mday-1)*60*60*24L;
-    seconds+= timeptr->tm_hour*60*60;
+    seconds+= timeptr->tm_hour*60*60L;
     seconds+= timeptr->tm_min*60;
     seconds+= timeptr->tm_sec;
     return seconds;