Additional check for convert to double (#10224)
Signed-off-by: Hans-Dietert Loew <hdloew@googlemail.com>
This commit is contained in:
@@ -50,7 +50,7 @@ public class CcuVariablesAndScriptsParser extends CommonRpcParser<TclScriptDataL
|
|||||||
if (dp.isIntegerType()) {
|
if (dp.isIntegerType()) {
|
||||||
dp.setMinValue(toInteger(entry.minValue));
|
dp.setMinValue(toInteger(entry.minValue));
|
||||||
dp.setMaxValue(toInteger(entry.maxValue));
|
dp.setMaxValue(toInteger(entry.maxValue));
|
||||||
} else {
|
} else if (dp.isFloatType()) {
|
||||||
dp.setMinValue(toDouble(entry.minValue));
|
dp.setMinValue(toDouble(entry.minValue));
|
||||||
dp.setMaxValue(toDouble(entry.maxValue));
|
dp.setMaxValue(toDouble(entry.maxValue));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user