From 7604adc4b33a8767b50afc6218dcd4651ac72c29 Mon Sep 17 00:00:00 2001 From: Peter Edberg Date: Mon, 9 Oct 2017 06:57:17 +0000 Subject: [PATCH] ICU-13352 Fix ordering of limit test and array ref in ufmt_utop X-SVN-Rev: 40602 --- icu4c/source/io/ufmt_cmn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icu4c/source/io/ufmt_cmn.cpp b/icu4c/source/io/ufmt_cmn.cpp index 42e8e3e5466..2b1a76fc8a2 100644 --- a/icu4c/source/io/ufmt_cmn.cpp +++ b/icu4c/source/io/ufmt_cmn.cpp @@ -187,7 +187,7 @@ ufmt_utop(const UChar *buffer, } /* iterate through buffer, stop when you hit the end */ - while(ufmt_isdigit(buffer[count], 16) && count < *len) { + while(count < *len && ufmt_isdigit(buffer[count], 16)) { /* increment the count consumed */ ++count; } -- 2.40.0