From 7b3f554e8a1c87791ff8cf4ff24a32d7acfd90d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20R=C3=BChl?= Date: Thu, 26 Sep 2024 12:03:52 +0200 Subject: [PATCH] fix(plc4go/opcua): fix more compile issues --- plc4go/protocols/opcua/readwrite/model/PascalString.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plc4go/protocols/opcua/readwrite/model/PascalString.go b/plc4go/protocols/opcua/readwrite/model/PascalString.go index 76869c092f1..901e444ff58 100644 --- a/plc4go/protocols/opcua/readwrite/model/PascalString.go +++ b/plc4go/protocols/opcua/readwrite/model/PascalString.go @@ -112,7 +112,7 @@ func (m *_PascalString) GetLengthInBits(ctx context.Context) uint16 { // Optional Field (stringValue) if m.StringValue != nil { - lengthInBits += -1 + lengthInBits += 0 } return lengthInBits