aboutsummaryrefslogtreecommitdiffstats
path: root/src/server/Utils.hx
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Utils.hx')
-rw-r--r--src/server/Utils.hx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/Utils.hx b/src/server/Utils.hx
index 8fcc4c6..eb28115 100644
--- a/src/server/Utils.hx
+++ b/src/server/Utils.hx
@@ -70,7 +70,7 @@ class Utils {
r.setEncoding("utf8");
final data = new StringBuf();
r.on("data", chunk -> data.add(chunk));
- r.on("end", _ -> callback(data.toString()));
+ r.on("end", () -> callback(data.toString()));
}).on("error", onError).on("timeout", onError);
}
@@ -90,8 +90,8 @@ class Utils {
return "127.0.0.1";
}
- public static function isOutOfRange(value:Float, min:Float, max:Float):Bool {
- return value == null || Math.isNaN(value) || value < min || value > max;
+ public static function isOutOfRange(value:Int, min:Int, max:Int):Bool {
+ return value == null || value < min || value > max;
}
public static function sortedPush(ids:Array<Int>, id:Int):Void {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage