Fixed warning against slicing using floats