From 4ddc60e3692376c080b98ce5b5e6a5be5a38d4c0 Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Thu, 1 Jul 2010 20:17:52 +0000 Subject: [PATCH] Integer was getting envious of Short's MIN/MAX_VALUE constants, so let's appease it. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6090 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/Integer.as | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/as/com/threerings/util/Integer.as b/src/as/com/threerings/util/Integer.as index 6db2524a2..83af3e3f4 100644 --- a/src/as/com/threerings/util/Integer.as +++ b/src/as/com/threerings/util/Integer.as @@ -36,6 +36,12 @@ import com.threerings.io.Streamable; public final class Integer implements Hashable, Boxed, Streamable { + /** The minimum possible int value. */ + public static const MIN_VALUE :int = -Math.pow(2, 31); + + /** The maximum possible int value. */ + public static const MAX_VALUE :int = (Math.pow(2, 31) - 1); + public static function valueOf (val :int) :Integer { return new Integer(val);