fix float/double warning