From 2109bd3f9722929a1d8b6850b235677a03a1313a Mon Sep 17 00:00:00 2001 From: Nathan Warden Date: Wed, 31 Jan 2018 14:02:17 -0500 Subject: [PATCH] Fix an infinite recursion in the Mathf.Decimals method when using floats. --- modules/mono/glue/cs_files/Mathf.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/glue/cs_files/Mathf.cs b/modules/mono/glue/cs_files/Mathf.cs index 6951ace4fc8..476396e9a3d 100644 --- a/modules/mono/glue/cs_files/Mathf.cs +++ b/modules/mono/glue/cs_files/Mathf.cs @@ -71,7 +71,7 @@ namespace Godot public static int Decimals(float step) { - return Decimals(step); + return Decimals((decimal)step); } public static int Decimals(decimal step)