bogus c++'ism in tzcode2004e

Todd C. Miller Todd.Miller at courtesan.com
Mon Oct 18 22:12:12 UTC 2004


This fixes the compilation error.

 - todd

--- strftime.c.orig	Mon Oct 11 12:46:51 2004
+++ strftime.c	Mon Oct 18 16:10:37 2004
@@ -446,7 +446,7 @@
 							pt, ptlim);
 					else if (*format == 'g') {
 						*warnp = IN_ALL;
-						pt = _conv(int(year % 100),
+						pt = _conv((int) (year % 100),
 							"%02d", pt, ptlim);
 					} else	pt = _lconv(year, "%04ld",
 							pt, ptlim);



More information about the tz mailing list