fix typing bugs in fp conversion macros