PRIMITIVE_HEADER (1);
#if defined UINT64_MAX || defined uint64_t
CHECK_ARG (1, FLONUM_P);
+ {
+ double_uint64_t_cast cast;
- double_uint64_t_cast cast;
-
- cast.dbl = FLONUM_TO_DOUBLE (ARG_REF (1));
+ cast.dbl = FLONUM_TO_DOUBLE (ARG_REF (1));
- PRIMITIVE_RETURN (uintmax_to_integer (cast.u64));
+ PRIMITIVE_RETURN (uintmax_to_integer (cast.u64));
+ }
#else
error_unimplemented_primitive ();
PRIMITIVE_RETURN (UNSPECIFIC);
PRIMITIVE_HEADER (1);
#if defined UINT64_MAX || defined uint64_t
CHECK_ARG (1, INTEGER_P);
+ {
+ double_uint64_t_cast cast;
- double_uint64_t_cast cast;
-
- cast.u64 = integer_to_uintmax (ARG_REF (1));
+ cast.u64 = integer_to_uintmax (ARG_REF (1));
- PRIMITIVE_RETURN (double_to_flonum (cast.dbl));
+ PRIMITIVE_RETURN (double_to_flonum (cast.dbl));
+ }
#else
error_unimplemented_primitive ();
PRIMITIVE_RETURN (UNSPECIFIC);