Warning fix

This commit is contained in:
Alex Zolotarev 2011-10-25 18:49:52 +03:00 committed by Alex Zolotarev
parent bcb679e858
commit 7d2fea2b62

View file

@ -14,7 +14,7 @@ namespace feature
str.reserve(strlen(prefix) + 1);
str = prefix;
char arrChar[] = { '0', '1', '2', '3' };
static char const arrChar[] = { '0', '1', '2', '3' };
STATIC_ASSERT ( ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrWorldScales) );
STATIC_ASSERT ( ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrCountryScales) );
ASSERT ( ind >= 0 && ind < ARRAY_SIZE(arrChar), (ind) );