Skip to content

Commit

Permalink
[Truffle] Fixing POSIX.readlink Unsafe usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish committed May 7, 2015
1 parent a63b8fe commit 8b700b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public int readlink(RubyString path, RubyBasicObject pointer, int bufsize) {
throw new RaiseException(getContext().getCoreLibrary().errnoError(posix().errno(), this));
}
for (int n = 0; n < buffer.length; n++) {
UnsafeHolder.U.putInt(address + n * Unsafe.ARRAY_BYTE_INDEX_SCALE, buffer[n]);
UnsafeHolder.U.putByte(address + n * Unsafe.ARRAY_BYTE_INDEX_SCALE, buffer[n]);
}
return result;
}
Expand Down

0 comments on commit 8b700b6

Please sign in to comment.