corrected numeric formatting

This commit is contained in:
john30
2016-12-17 17:52:12 +01:00
parent be55283b5d
commit faa331e96a
+3 -1
View File
@@ -1366,7 +1366,9 @@ bool SimpleNumericCondition::checkValue(Message* message, string field) {
if (result==RESULT_OK) {
for (size_t i=0; i+1<m_valueRanges.size(); i+=2) {
if (m_valueRanges[i]<=value && value<=m_valueRanges[i+1]) {
m_matchedValue = ""+static_cast<unsigned>(value);
ostringstream out;
out << static_cast<unsigned>(value);
m_matchedValue = out.str();
return true;
}
}