summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorSergey Minakov <naithar@icloud.com>2020-07-15 21:30:59 +0300
committerSergey Minakov <naithar@icloud.com>2020-07-25 21:55:10 +0200
commit7ee268c2c77f8dd66e59d0d2353ea2233b2abfc0 (patch)
tree782908640203e9481909fa18a04f549a0acc958e /core
parent8e9a07c401c0e9c12adf23043df1f9d73a908512 (diff)
Core Variant: switch from 'real' to 'float' to allow building with NEED_LONG_INT
Diffstat (limited to 'core')
-rw-r--r--core/variant.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant.cpp b/core/variant.cpp
index f6b7e2821a..afd01b3359 100644
--- a/core/variant.cpp
+++ b/core/variant.cpp
@@ -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: {