summaryrefslogtreecommitdiffstats
path: root/parameter/IntegerParameterType.cpp
diff options
context:
space:
mode:
authorSylvain Pichon <sylvainx.pichon@intel.com>2014-01-28 14:07:10 +0100
committerDavid Wagner <david.wagner@intel.com>2014-02-13 16:06:24 +0100
commit7613e74a97d67c392a241ad3a62c6533b31f48ab (patch)
treec2342cb281384df832a2c7db73c66091f1a5d89a /parameter/IntegerParameterType.cpp
parenta6b01d2049a137932f303cdee554d8d2703d7af7 (diff)
downloadexternal_parameter-framework-7613e74a97d67c392a241ad3a62c6533b31f48ab.zip
external_parameter-framework-7613e74a97d67c392a241ad3a62c6533b31f48ab.tar.gz
external_parameter-framework-7613e74a97d67c392a241ad3a62c6533b31f48ab.tar.bz2
Correct signed hexadecimal integer ranges conversion
BZ: 165527 PFW does not convert hexadecimal signed range values correctly This patch correct signed range values interpretation Change-Id: I5c060c637781821b70b769cabc31347b0e5e5be1 Signed-off-by: Sylvain Pichon <sylvainx.pichon@intel.com>
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;