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
1 changed files with 1 additions and 1 deletions
|
@ -1221,7 +1221,7 @@ Variant Variant::construct(const Variant::Type p_type, const Variant **p_args, i
|
||||||
return (int64_t(*p_args[0]));
|
return (int64_t(*p_args[0]));
|
||||||
}
|
}
|
||||||
case REAL: {
|
case REAL: {
|
||||||
return real_t(*p_args[0]);
|
return double(*p_args[0]);
|
||||||
}
|
}
|
||||||
case STRING: {
|
case STRING: {
|
||||||
return String(*p_args[0]);
|
return String(*p_args[0]);
|
||||||
|
|
Loading…
Reference in a new issue