summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-05-15 09:39:31 +0000
committerdes <des@FreeBSD.org>2002-05-15 09:39:31 +0000
commit86afaea3e6e27791453b0a3fd8176b27b428ee9c (patch)
tree935471cb34669fd46cc73ce6d7d1e3c4d507b409
parent81c41451d4049389d042129c7469179e2a37cc99 (diff)
downloadFreeBSD-src-86afaea3e6e27791453b0a3fd8176b27b428ee9c.zip
FreeBSD-src-86afaea3e6e27791453b0a3fd8176b27b428ee9c.tar.gz
Explicitly cast NCONTINENTS to int to silence an overflow warning.
-rw-r--r--usr.sbin/tzsetup/tzsetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/tzsetup/tzsetup.c b/usr.sbin/tzsetup/tzsetup.c
index 332e201..bb17cb6 100644
--- a/usr.sbin/tzsetup/tzsetup.c
+++ b/usr.sbin/tzsetup/tzsetup.c
@@ -94,7 +94,7 @@ static dialogMenuItem continents[] = {
{ "9", "Indian Ocean", 0, continent_country_menu, 0, &indian },
{ "0", "Pacific Ocean", 0, continent_country_menu, 0, &pacific }
};
-#define NCONTINENTS ((sizeof continents)/(sizeof continents[0]))
+#define NCONTINENTS (int)((sizeof continents)/(sizeof continents[0]))
#define OCEANP(x) ((x) == 3 || (x) == 5 || (x) == 8 || (x) == 9)
static int
OpenPOWER on IntegriCloud