Skip to content

Commit dd25c60

Browse files
committed
RVM-988 : Ensure that AdressInputStream.read() always returns an int in the interval [0,255] (patch from Da Feng)
1 parent 2d4c5f6 commit dd25c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rvm/src/org/jikesrvm/util/AddressInputStream.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public int read() throws IOException {
6161
}
6262
byte result = location.loadByte(offset);
6363
offset = offset.plus(1);
64-
return result;
64+
return result & 0xFF;
6565
}
6666
/** Reset to mark */
6767
@Override

0 commit comments

Comments
 (0)