summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-02-01 15:39:51 +0100
committerGitHub <noreply@github.com>2018-02-01 15:39:51 +0100
commit2459eebc1d0d679efb546aa5a95ddd493290a7aa (patch)
treeefad6817b840f349b20c59a4964ce906f8cd0216 /modules
parent0d255df93a4463bb59318c1daabf502e987ed028 (diff)
parent2109bd3f9722929a1d8b6850b235677a03a1313a (diff)
Merge pull request #16258 from NathanWarden/fix_mono_decimals_method
[Mono] Fix an infinite recursion in the Mathf.Decimals method when using floats.
Diffstat (limited to 'modules')
-rw-r--r--modules/mono/glue/cs_files/Mathf.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/glue/cs_files/Mathf.cs b/modules/mono/glue/cs_files/Mathf.cs
index 6951ace4fc..476396e9a3 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)