From 908561fe2a3478845a5a385fdf5cb45e73e7abd4 Mon Sep 17 00:00:00 2001 From: Alan Liu Date: Thu, 14 Nov 2002 22:42:13 +0000 Subject: [PATCH] ICU-2038 move stack vars down X-SVN-Rev: 10265 --- icu4c/source/common/uniset.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/common/uniset.cpp b/icu4c/source/common/uniset.cpp index e47f4de4f0..9857858e39 100644 --- a/icu4c/source/common/uniset.cpp +++ b/icu4c/source/common/uniset.cpp @@ -689,11 +689,11 @@ int32_t UnicodeSet::findCodePoint(UChar32 c) const { // Return the smallest i such that c < list[i]. Assume // list[len - 1] == HIGH and that c is legal (0..HIGH-1). if (c < list[0]) return 0; - int32_t lo = 0; - int32_t hi = len - 1; // High runner test. c is often after the last range, so an // initial check for this condition pays off. if (len >= 2 && c >= list[len-2]) return len-1; + int32_t lo = 0; + int32_t hi = len - 1; // invariant: c >= list[lo] // invariant: c < list[hi] for (;;) {