Skip to content

Commit 1cb8ae3

Browse files
ctf: correctly parse integer size
Change-Id: I60f3854afcdf4454847ca49bfdee0ca7d89f9601 Signed-off-by: Matthew Khouzam <[email protected]>
1 parent de8e7c3 commit 1cb8ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass/internal/ctf/core/event/metadata/tsdl/integer/IntegerDeclarationParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public IntegerDeclaration parse(ICTFMetadataNode integer, ICommonTreeParserParam
262262
}
263263

264264
if (mappings.size() > 0) {
265-
return IntegerDeclaration.createDeclaration(base, signed, base, byteOrder, encoding, clock, alignment, role, mappings);
265+
return IntegerDeclaration.createDeclaration((int) size, signed, base, byteOrder, encoding, clock, alignment, role, mappings);
266266
}
267267

268268
return IntegerDeclaration.createDeclaration((int) size, signed, base,

0 commit comments

Comments
 (0)