Code

fixed some corner cases in drawing code to get the same results as before with way...
[rrdtool-all.git] / program / src / parsetime.c
index 775a40a2552776ad92c660529612f14944e9f302..eedd3e488b80f6112fe597ca19659c0e65365164 100644 (file)
@@ -659,7 +659,8 @@ assign_date(struct rrd_time_value *ptv, long mday, long mon, long year)
 static char *
 day(struct rrd_time_value *ptv)
 {
-    long mday=0, wday, mon, year = ptv->tm.tm_year;
+    /* using time_t seems to help portability with 64bit oses */    
+    time_t mday=0, wday, mon, year = ptv->tm.tm_year;
     int tlen;
 
     switch (sc_tokid) {