Explicitly cast NCONTINENTS to int to silence an overflow warning.

This commit is contained in:
Dag-Erling Smørgrav 2002-05-15 09:39:31 +00:00
parent 80e9dc4f08
commit cb20e5a97a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96647

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