Skip to content

Commit

Permalink
Merge pull request #44306 from Demindiro/fix-conv-to-32bit-float
Browse files Browse the repository at this point in the history
Fix Variant conversion to float instead of double
  • Loading branch information
akien-mga committed Dec 21, 2020
2 parents 542acc8 + 7083365 commit 9c3293b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/variant_call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 9c3293b

Please sign in to comment.