
the error was that the range check was done on the float before converting to an int. now convert to and int first and ensure a valid range on that.
the error was that the range check was done on the float before converting to an int. now convert to and int first and ensure a valid range on that.