Browse Source

BETA: Fixing minor typo in return type of constrain using int parameters.
* Reported by: Nos

Rumen Nikiforov 11 years ago
parent
commit
09d0fd329f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      L2J_Server_BETA/java/com/l2jserver/gameserver/util/Util.java

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/util/Util.java

@@ -937,7 +937,7 @@ public final class Util
 	 * @param max the upper end of the range, all data types
 	 * @param max the upper end of the range, all data types
 	 * @return input: if input is between min and max, min: if input is less than min, max: if input is greater than max
 	 * @return input: if input is between min and max, min: if input is less than min, max: if input is greater than max
 	 */
 	 */
-	public static long constrain(int input, int min, int max)
+	public static int constrain(int input, int min, int max)
 	{
 	{
 		return (input < min) ? min : (input > max) ? max : input;
 		return (input < min) ? min : (input > max) ? max : input;
 	}
 	}