summaryrefslogtreecommitdiff
path: root/indra/llcommon/llfindlocale.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/llfindlocale.cpp')
-rw-r--r--indra/llcommon/llfindlocale.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/llcommon/llfindlocale.cpp b/indra/llcommon/llfindlocale.cpp
index a511d3ffed..505f5c540b 100644
--- a/indra/llcommon/llfindlocale.cpp
+++ b/indra/llcommon/llfindlocale.cpp
@@ -417,10 +417,8 @@ static const IDToCode primary_to_code[] = {
/*{LANG_WALON, "wa"},*/
{LANG_CHINESE, "zh"},
};
-static int num_primary_to_code =
- sizeof(primary_to_code) / sizeof(*primary_to_code);
-static int num_both_to_code =
- sizeof(both_to_code) / sizeof(*both_to_code);
+static int num_primary_to_code = LL_ARRAY_SIZE(primary_to_code);
+static int num_both_to_code = LL_ARRAY_SIZE(both_to_code);
static const int
lcid_to_fl(LCID lcid,