diff options
Diffstat (limited to 'modules/mono/glue/cs_files/GD.cs')
-rw-r--r-- | modules/mono/glue/cs_files/GD.cs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/mono/glue/cs_files/GD.cs b/modules/mono/glue/cs_files/GD.cs index 1ee7e7d21c..f0967f2269 100644 --- a/modules/mono/glue/cs_files/GD.cs +++ b/modules/mono/glue/cs_files/GD.cs @@ -91,9 +91,9 @@ namespace Godot public static int[] Range(int length) { - int[] ret = new int[length]; + var ret = new int[length]; - for (int i = 0; i < length; i++) + for (var i = 0; i < length; i++) { ret[i] = i; } @@ -106,9 +106,9 @@ namespace Godot if (to < from) return new int[0]; - int[] ret = new int[to - from]; + var ret = new int[to - from]; - for (int i = from; i < to; i++) + for (var i = from; i < to; i++) { ret[i - from] = i; } @@ -124,27 +124,27 @@ namespace Godot return new int[0]; // Calculate count - int count = 0; + var count = 0; if (increment > 0) count = ((to - from - 1) / increment) + 1; else count = ((from - to - 1) / -increment) + 1; - int[] ret = new int[count]; + var ret = new int[count]; if (increment > 0) { - int idx = 0; - for (int i = from; i < to; i += increment) + int idx = 0; + for (var i = from; i < to; i += increment) { ret[idx++] = i; } } else { - int idx = 0; - for (int i = from; i > to; i += increment) + int idx = 0; + for (var i = from; i > to; i += increment) { ret[idx++] = i; } |