Skip to content

Commit e5a8fd3

Browse files
committed
fix: Made sure the byte is not converted into an unsigned byte before creating the PlcSINT in the new "getList" method.
1 parent 4b02d35 commit e5a8fd3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plc4j/spi/src/main/java/org/apache/plc4x/java/spi/values/PlcRawByteArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public boolean isList() {
7272
public List<PlcValue> getList() {
7373
List<PlcValue> shortList = new ArrayList<>(value.length);
7474
for (byte b : value) {
75-
shortList.add(new PlcSINT((short) (b & 0xFF)));
75+
shortList.add(new PlcSINT((short) b));
7676
}
7777
return shortList;
7878
}

0 commit comments

Comments
 (0)