From 58d0d7567cf271f36167da4e56794e2935b3ad4e Mon Sep 17 00:00:00 2001 From: Daniel Green Date: Thu, 3 Feb 2022 17:29:27 -0500 Subject: [PATCH] Remove impossible logic --- src/strings/gb18030_codeindex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strings/gb18030_codeindex.h b/src/strings/gb18030_codeindex.h index 2cbb48cbea..f5261df879 100644 --- a/src/strings/gb18030_codeindex.h +++ b/src/strings/gb18030_codeindex.h @@ -10887,7 +10887,7 @@ static MVMGrapheme32 gb18030_index_to_cp_len4(MVMuint8 byte1, MVMuint8 byte2, MV byte4 -= 0x30; pos_1 = byte1 * 10 + byte2; pos_2 = byte3 * 10 + byte4; - if (0 <= pos_1 && pos_1 <= 31 && 0 <= pos_2 && pos_2 <= 1259) { + if (pos_1 <= 31 && pos_2 <= 1259) { if (gb18030_len4_record_shift[pos_1] < 0) { return pos_2 - gb18030_len4_record_shift[pos_1]; } else {