changed fexcept_t to be int instead of uint16_t