aboutsummaryrefslogtreecommitdiffstats
path: root/parameter/IntegerParameterType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parameter/IntegerParameterType.cpp')
-rwxr-xr-xparameter/IntegerParameterType.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/parameter/IntegerParameterType.cpp b/parameter/IntegerParameterType.cpp
index b07194b..dfe5a45 100755
--- a/parameter/IntegerParameterType.cpp
+++ b/parameter/IntegerParameterType.cpp
@@ -105,11 +105,14 @@ bool CIntegerParameterType::fromXml(const CXmlElement& xmlElement, CXmlSerializi
_uiMin = 1UL << uiSizeInBits;
- signExtend((int32_t&)_uiMin);
}
+ signExtend((int32_t&)_uiMin);
+
if (xmlElement.hasAttribute("Max")) {
_uiMax = (uint32_t)xmlElement.getAttributeSignedInteger("Max");
+
+ signExtend((int32_t&)_uiMax);
} else {
_uiMax = (1UL << uiSizeInBits) - 1;