Merge pull request #44306 from Demindiro/fix-conv-to-32bit-float
Fix Variant conversion to float instead of double
This commit is contained in:
commit
9c3293b844
|
@ -1221,7 +1221,7 @@ Variant Variant::construct(const Variant::Type p_type, const Variant **p_args, i
|
|||
return (int64_t(*p_args[0]));
|
||||
}
|
||||
case REAL: {
|
||||
return real_t(*p_args[0]);
|
||||
return double(*p_args[0]);
|
||||
}
|
||||
case STRING: {
|
||||
return String(*p_args[0]);
|
||||
|
|
Loading…
Reference in New Issue