mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 14:49:18 +02:00
fixing build for immediate flonums on 32-bit machines
This commit is contained in:
parent
f141b22cb3
commit
964011c39b
1 changed files with 1 additions and 1 deletions
|
@ -401,7 +401,7 @@ SEXP_API float sexp_flonum_value (sexp x);
|
||||||
SEXP_API sexp sexp_make_flonum(sexp ctx, float f);
|
SEXP_API sexp sexp_make_flonum(sexp ctx, float f);
|
||||||
#else
|
#else
|
||||||
#define sexp_make_flonum(ctx, x) ((sexp) ((((union sexp_flonum_conv)((float)(x))).bits & ~SEXP_IMMEDIATE_MASK) + SEXP_IFLONUM_TAG))
|
#define sexp_make_flonum(ctx, x) ((sexp) ((((union sexp_flonum_conv)((float)(x))).bits & ~SEXP_IMMEDIATE_MASK) + SEXP_IFLONUM_TAG))
|
||||||
#define sexp_flonum_value(x) (((union sexp_flonum_conv)(((sexp_uint_t)(x)) & ~SEXP_IMMEDIATE_MASK)).flonum)
|
#define sexp_flonum_value(x) (((union sexp_flonum_conv)(((unsigned int)(x)) & ~SEXP_IMMEDIATE_MASK)).flonum)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define sexp_flonump(x) (sexp_check_tag(x, SEXP_FLONUM))
|
#define sexp_flonump(x) (sexp_check_tag(x, SEXP_FLONUM))
|
||||||
|
|
Loading…
Add table
Reference in a new issue