Skip to content

Commit

Permalink
Fix bug in PrimCompressToByteArrayNode
Browse files Browse the repository at this point in the history
(introduced with ff81930)
  • Loading branch information
fniephaus committed Jun 9, 2020
1 parent 40bc744 commit dcb4694
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ protected static final long doFail(final Object receiver, final Object string1,
public abstract static class PrimCompressToByteArrayNode extends AbstractPrimitiveNode implements TernaryPrimitive {

private static int encodeBytesOf(final int anInt, final NativeObject ba, final int i) {
ba.setByte(i - 1, anInt >> 24);
ba.setByte(i + 0, anInt >> 16);
ba.setByte(i + 1, anInt >> 8);
ba.setByte(i + 2, anInt);
ba.setByte(i - 1, (byte) (anInt >> 24));
ba.setByte(i + 0, (byte) (anInt >> 16));
ba.setByte(i + 1, (byte) (anInt >> 8));
ba.setByte(i + 2, (byte) anInt);
return i + 4;
}

Expand Down

0 comments on commit dcb4694

Please sign in to comment.