From dad439c6775405e927bafbda94c6267dc3588f6e Mon Sep 17 00:00:00 2001 From: Arthur David Olson Date: Mon, 9 Aug 2004 15:45:30 -0400 Subject: [PATCH] avoid gcc warning SCCS-file: zdump.c SCCS-SID: 7.35 --- zdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zdump.c b/zdump.c index 63053a7..912d03f 100644 --- a/zdump.c +++ b/zdump.c @@ -389,11 +389,11 @@ register const struct tm * timeptr; register const char * mn; if (timeptr->tm_wday < 0 || - timeptr->tm_wday >= sizeof wday_name / sizeof wday_name[0]) + timeptr->tm_wday >= (int) (sizeof wday_name / sizeof wday_name[0])) wn = "???"; else wn = wday_name[timeptr->tm_wday]; if (timeptr->tm_mon < 0 || - timeptr->tm_mon >= sizeof mon_name / sizeof mon_name[0]) + timeptr->tm_mon >= (int) (sizeof mon_name / sizeof mon_name[0])) mn = "???"; else mn = mon_name[timeptr->tm_mon]; (void) printf("%.3s %.3s%3d %.2d:%.2d:%.2d %ld",