Core Variant: switch from 'real' to 'float' to allow building with NEED_LONG_INT

This commit is contained in:
Sergey Minakov 2020-07-15 21:30:59 +03:00
parent 8e9a07c401
commit 7ee268c2c7

View File

@ -1454,7 +1454,7 @@ Variant::operator signed long() const {
case INT:
return _data._int;
case FLOAT:
return _data._real;
return _data._float;
case STRING:
return operator String().to_int();
default: {
@ -1474,7 +1474,7 @@ Variant::operator unsigned long() const {
case INT:
return _data._int;
case FLOAT:
return _data._real;
return _data._float;
case STRING:
return operator String().to_int();
default: {