aboutsummaryrefslogtreecommitdiffstats
path: root/parameter/IntegerParameterType.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parameter/IntegerParameterType.cpp')
-rwxr-xr-x[-rw-r--r--]parameter/IntegerParameterType.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/parameter/IntegerParameterType.cpp b/parameter/IntegerParameterType.cpp
index 3c3a626..b07194b 100644..100755
--- a/parameter/IntegerParameterType.cpp
+++ b/parameter/IntegerParameterType.cpp
@@ -343,6 +343,16 @@ uint32_t CIntegerParameterType::getDefaultValue() const
return _uiMin;
}
+int CIntegerParameterType::toPlainInteger(int iSizeOptimizedData) const
+{
+ if (_bSigned) {
+
+ signExtend(iSizeOptimizedData);
+ }
+
+ return base::toPlainInteger(iSizeOptimizedData);
+}
+
// Convert value provided by the user as a string into an int64
bool CIntegerParameterType::convertValueFromString(const string& strValue, int64_t& iData, CParameterAccessContext& parameterAccessContext) const {