From 12af25735ddbc713f0e7cdbc8a785fa73c62f40b Mon Sep 17 00:00:00 2001 From: Dan Korostelev Date: Thu, 5 Jun 2014 02:52:24 +0400 Subject: [PATCH] inline IntIterator, just in case :-) --- std/IntIterator.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/std/IntIterator.hx b/std/IntIterator.hx index 652d991d699..c0e60abfe83 100644 --- a/std/IntIterator.hx +++ b/std/IntIterator.hx @@ -41,7 +41,7 @@ class IntIterator { If `max <= min`, the iterator will not act as a countdown. **/ - public function new( min : Int, max : Int ) { + public inline function new( min : Int, max : Int ) { this.min = min; this.max = max; } @@ -49,7 +49,7 @@ class IntIterator { /** Returns true if the iterator has other items, false otherwise. **/ - public function hasNext() { + public inline function hasNext() { return min < max; } @@ -58,7 +58,7 @@ class IntIterator { If this is called while hasNext() is false, the result is unspecified. **/ - public function next() { + public inline function next() { return min++; }