bool -> (int, float) and (int, float) -> bool implicit cast removed

Fix: #40249
This commit is contained in:
Thakee Nathees 2020-07-13 11:42:19 +05:30
parent 39cf47ff82
commit 00020e5736

View File

@ -505,8 +505,8 @@ bool Variant::can_convert_strict(Variant::Type p_type_from, Variant::Type p_type
switch (p_type_to) {
case BOOL: {
static const Type valid[] = {
INT,
FLOAT,
//INT,
//FLOAT,
//STRING,
NIL,
};
@ -515,7 +515,7 @@ bool Variant::can_convert_strict(Variant::Type p_type_from, Variant::Type p_type
} break;
case INT: {
static const Type valid[] = {
BOOL,
//BOOL,
FLOAT,
//STRING,
NIL,
@ -526,7 +526,7 @@ bool Variant::can_convert_strict(Variant::Type p_type_from, Variant::Type p_type
} break;
case FLOAT: {
static const Type valid[] = {
BOOL,
//BOOL,
INT,
//STRING,
NIL,