summaryrefslogtreecommitdiff
path: root/i18npool/source/indexentry
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-05-14 14:29:43 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-16 17:35:03 +0200
commitc2a48ac46ee2def38d2c26df117ad4d905e2241c (patch)
tree1ffd5db6612db2cfe1f0ca56fc9385960b65b2ae /i18npool/source/indexentry
parentbc64f511968eb0266cb56b0bc9bb5a0d6831189f (diff)
array address is only MAX_ADDRESS wide
Diffstat (limited to 'i18npool/source/indexentry')
-rw-r--r--i18npool/source/indexentry/genindex_data.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18npool/source/indexentry/genindex_data.cxx b/i18npool/source/indexentry/genindex_data.cxx
index fcd16a6f4d7f..48ae02576a87 100644
--- a/i18npool/source/indexentry/genindex_data.cxx
+++ b/i18npool/source/indexentry/genindex_data.cxx
@@ -79,7 +79,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
sal_Int32 nPos=0;
sal_uInt32 nChar = Ostr.iterateCodePoints(&nPos, 2);
- if (nChar > MAX_ADDRESS) {
+ if (nChar >= MAX_ADDRESS) {
printf("Code point 0x%lx exceeds MAX_ADDRESS 0x%x, Please increase MAX_ADDRESS", static_cast<long unsigned int>(nChar), MAX_ADDRESS);
exit(1);
}