Commits

György Kohut committed 31d0826

Fix byte to int conversion

Comments (0)

Files changed (1)

src/main/java/org/honeynet/hpfeeds/ExampleCsvConsumer.java

 		@Override
 		public int read() throws IOException {
 			try {
-				return buf.get();
+				return buf.get() & 0xff;
 			}
 			catch (BufferUnderflowException e) {
 				return -1;