whats the objective for the recent ctime change?

--- a/sys/src/libc/9sys/ctime.c Wed May 01 16:55:11 2013 +0200
+++ b/sys/src/libc/9sys/ctime.c Wed May 01 17:54:28 2013 +0200
@@ -106,8 +106,8 @@
        /*
         * break initial number into days
         */
-       hms = tim % 86400L;
-       day = tim / 86400L;
+       hms = (ulong)tim % 86400L;
+       day = (ulong)tim / 86400L;
        if(hms < 0) {
                hms += 86400L;
                day -= 1;

--
cinap

Reply via email to