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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user