Fix alignment issue. Now traces using more than one alignment can be
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / ctf / core / event / types / EnumDefinition.java
index e7824197d74280f763865df9cc96c5518f3bc0fc..308b05a4c28b28146e3359ef75042e49fe5ad994 100644 (file)
@@ -67,6 +67,9 @@ public class EnumDefinition extends Definition {
 
     @Override
     public void read(BitBuffer input) {
+        int align = (int) declaration.getAlignment();
+        int pos = input.position() + ((align-(input.position() % align))%align);
+        input.position(pos);
         integerValue.read(input);
         long val = integerValue.getValue();
 
This page took 0.024295 seconds and 5 git commands to generate.