ctf: Clamp float and integer declaration alignments to 1
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Wed, 16 Oct 2013 22:00:02 +0000 (18:00 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Thu, 17 Oct 2013 15:50:25 +0000 (11:50 -0400)
commit056ebaf148816de50b353db476b695758e5673d2
tree0231bc43e0985ff53722477f10bcc4befa90c462
parente8f9ac01a6da22f78adfd0736eec66b1283dec75
ctf: Clamp float and integer declaration alignments to 1

Alignments < 1 don't make much sense, so make sure the stored value is
always at least 1. StructDeclaration was doing this check, but Integer
and FloatDeclaration were not.

Change-Id: Iedb42a6fdda8706b7e8f522df10f67f2145bbba2
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/17434
Tested-by: Hudson CI
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.linuxtools.ctf.core.tests/src/org/eclipse/linuxtools/ctf/core/tests/types/FloatDeclarationTest.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/FloatDeclaration.java
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/IntegerDeclaration.java
This page took 0.028596 seconds and 5 git commands to generate.