Remove crack pipe; insert correct code.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1834 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: MathUtil.java,v 1.6 2002/10/26 20:31:06 mdb Exp $
|
// $Id: MathUtil.java,v 1.7 2002/10/26 23:21:19 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.media.util;
|
package com.threerings.media.util;
|
||||||
|
|
||||||
@@ -63,6 +63,6 @@ public class MathUtil
|
|||||||
*/
|
*/
|
||||||
public static int sign (int value)
|
public static int sign (int value)
|
||||||
{
|
{
|
||||||
return (value == 0) ? 1 : value/value;
|
return (value < 0) ? -1 : 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user