Fix a type warning that can exist with high warning levels

Okay let's try this again.

This will truncate floating-point parameters passed in, which may not be intended behavior, but erroring on floating-point would be a little more complicated.