diff options
-rwxr-xr-x | parameter/IntegerParameterType.cpp | 5 |
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; |