Explicitly cast NCONTINENTS to int to silence an overflow warning.

This commit is contained in:
des 2002-05-15 09:39:31 +00:00
parent 81c41451d4
commit 86afaea3e6

View File

@ -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