Additional check for convert to double (#10224)
Signed-off-by: Hans-Dietert Loew <hdloew@googlemail.com>
This commit is contained in:
parent
3f9f3f25f6
commit
583509e49d
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user