Skip to content

Commit

Permalink
fix: variables inside of function blocks / with two path segments (#1729
Browse files Browse the repository at this point in the history
)

Solves: 
[Bug]: EIP only working with variables with an odd character count (in second path segment) #1602
  • Loading branch information
luedi128 authored Aug 16, 2024
1 parent 7d973df commit ed50242
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ public static byte[] toAnsi(String tag) throws SerializationException {
newSegment = new LogicalSegment(new MemberID((byte) 0x00, Short.parseShort(identifier)));
segments.add(newSegment);
} else {
newSegment = new DataSegment(new AnsiExtendedSymbolSegment(identifier, (short) 0));
newSegment = new DataSegment(new AnsiExtendedSymbolSegment(identifier, (identifier.length() % 2 == 0) ? null : (short) 0));
segments.add(newSegment);
}
} else {
Expand Down

0 comments on commit ed50242

Please sign in to comment.