Boy, that's a stupid assumption on java conversion from float to int. I'm pretty sure there's other places where that happens too. Thanks for the fix here!