mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Core Variant: switch from 'real' to 'float' to allow building with NEED_LONG_INT
This commit is contained in:
parent
8e9a07c401
commit
7ee268c2c7
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user