diff --git a/barchart-udt-core/src/main/java/com/barchart/udt/net/NetInputStreamUDT.java b/barchart-udt-core/src/main/java/com/barchart/udt/net/NetInputStreamUDT.java index f41b5c2..d403641 100644 --- a/barchart-udt-core/src/main/java/com/barchart/udt/net/NetInputStreamUDT.java +++ b/barchart-udt-core/src/main/java/com/barchart/udt/net/NetInputStreamUDT.java @@ -64,7 +64,7 @@ public int read() throws IOException { assert count == 1; - return data[0]; + return data[0] & 0xFF; }