Merge pull request #44306 from Demindiro/fix-conv-to-32bit-float

Fix Variant conversion to float instead of double
This commit is contained in:
Rémi Verschelde 2020-12-21 01:36:18 +01:00 committed by GitHub
commit 9c3293b844
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]);