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
This commit is contained in:
Mike Thomas
2010-07-01 20:17:52 +00:00
parent 2f704712b2
commit 4ddc60e369
+6
View File
@@ -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);