You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Core Variant: switch from 'real' to 'float' to allow building with NEED_LONG_INT
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user