From 7ee268c2c77f8dd66e59d0d2353ea2233b2abfc0 Mon Sep 17 00:00:00 2001 From: Sergey Minakov Date: Wed, 15 Jul 2020 21:30:59 +0300 Subject: Core Variant: switch from 'real' to 'float' to allow building with NEED_LONG_INT --- core/variant.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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: { -- cgit v1.2.3