Skip to content

Commit

Permalink
Remove impossible logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Feb 3, 2022
1 parent d968da8 commit 58d0d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strings/gb18030_codeindex.h
Expand Up @@ -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 {
Expand Down

0 comments on commit 58d0d75

Please sign in to comment.