@@ -209,9 +209,9 @@ public class ForeignPrimitives {
209209 buf = null;
210210 }
211211
212− public static Integer idris_peek(Object buf, int offset) {
212+ public static byte idris_peek(Object buf, int offset) {
213213 ByteBuffer buffer = (ByteBuffer)buf;
214− return Integer.valueOf(buffer.get(offset));
214+ return buffer.get(offset);
215215 }
216216
217217 public static void idris_poke(Object buf, int offset, Object data) {