Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/jcodings/specific/BaseUTF8Encoding.java
Original file line number Diff line number Diff line change
@@ -67,7 +67,8 @@ public boolean isNewLine(byte[]bytes, int p, int end) {
private static final int VALID_CODE_LIMIT = 0x0010ffff;

@Override
public int codeToMbcLength(int code) {
public int codeToMbcLength(int intCode) {
long code = intCode & 0xFFFFFFFFL;
if ((code & 0xffffff80) == 0) {
return 1;
} else if ((code & 0xfffff800) == 0) {

0 comments on commit 612c6b5

Please sign in to comment.