summaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorIgnacio Roldán Etcheverry <neikeq@users.noreply.github.com>2022-12-02 20:46:44 +0100
committerGitHub <noreply@github.com>2022-12-02 20:46:44 +0100
commit6f1d4fd8871155efcb29d115a7168879948e1cf3 (patch)
tree8cb7ff24731b9b781a888421536852fa99f566bc /modules/mono
parentf3c68d6c8312b0847a9083f1989c39c7453f9665 (diff)
parentfbd41a6eda3b5e0c629ec1b1a43162aa4c2bcc98 (diff)
Merge pull request #69498 from raulsntos/dotnet/float64
C#: Always convert float Variants to System.Double
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs4
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs
index 32d9598554..49a363cef2 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Variant.cs
@@ -114,11 +114,7 @@ public partial struct Variant : IDisposable
{
Type.Bool => AsBool(),
Type.Int => AsInt64(),
-#if REAL_T_IS_DOUBLE
Type.Float => AsDouble(),
-#else
- Type.Float => AsSingle(),
-#endif
Type.String => AsString(),
Type.Vector2 => AsVector2(),
Type.Vector2i => AsVector2i(),