Skip to content

Commit 6df3300

Browse files
committed
Fix copy-and-paste mistake in compact unihex logic
1 parent e9cb602 commit 6df3300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/main/java/org/embeddedt/modernfix/render/font/CompactUnihexContents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private static long extract4Shorts(short[] arr, int off) {
2929
}
3030

3131
private static short extractShort(long compressed, int off) {
32-
return (byte)((compressed >> (off * 16)) & 0xFF);
32+
return (short)((compressed >> (off * 16)) & 0xFFFF);
3333
}
3434

3535
public static class Bytes implements UnihexProvider.LineData {

0 commit comments

Comments
 (0)