Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/jcodings/SingleByteEncoding.java
Original file line number Diff line number Diff line change
@@ -73,8 +73,8 @@ public int codeToMbcLength(int code) {
@Override
public final int codeToMbc(int code, byte[] bytes, int p) {
if (code > MAX_BYTE) return ErrorCodes.ERR_TOO_BIG_WIDE_CHAR_VALUE;
bytes[p] = (byte)(code & 0xff); // c implementation also uses mask here

bytes[p] = (byte)code;
return 1;
}

0 comments on commit e9b94ec

Please sign in to comment.