From afedf9bcbb88942c40e4d067fcea8236d45b9d56 Mon Sep 17 00:00:00 2001 From: hvlad Date: Fri, 5 Aug 2011 08:35:45 +0000 Subject: [PATCH] Correction : don't miss minor == 0 when trying ICU versions --- src/common/unicode_util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/unicode_util.cpp b/src/common/unicode_util.cpp index 170c24daac..1895c7b139 100644 --- a/src/common/unicode_util.cpp +++ b/src/common/unicode_util.cpp @@ -1019,7 +1019,7 @@ UnicodeUtil::ConversionICU& UnicodeUtil::getConversionICU() int majorArray[] = {4, 3, 5, 6, 0}; for (int* major = majorArray; *major; ++major) { - for (int minor = 20; --minor; ) /* from 19 down to 0 */ + for (int minor = 20; --minor >= 0; ) /* from 19 down to 0 */ { try {