ctf: fix a misleading comment on string alignment.
authorEtienne Bergeron <etienne.bergeron@gmail.com>
Wed, 4 Dec 2013 16:18:26 +0000 (11:18 -0500)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Wed, 4 Dec 2013 19:11:30 +0000 (14:11 -0500)
Signed-off-by: etienne.bergeron@gmail.com <etienne.bergeron@gmail.com>
Change-Id: I4efeaf273c8695a0aa8f72ba57592dd8d0e8b649
Reviewed-on: https://git.eclipse.org/r/19320
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/StringDeclaration.java

index 6f63b4d8313b6b88de49488a2e3b00d03934f73e..94b74d0df7b881db73a8fa6eb9a4bb6fce1ec23b 100644 (file)
@@ -71,7 +71,8 @@ public class StringDeclaration implements IDeclaration {
 
     @Override
     public long getAlignment() {
-        return 8; //FIXME: should be the elementtype.
+        // See ctf 4.2.5: Strings are always aligned on byte size.
+        return 8;
     }
     // ------------------------------------------------------------------------
     // Operations
This page took 0.027746 seconds and 5 git commands to generate.