diff options
author | Gary Houston <ghouston@arglist.com> | 2002-09-24 22:21:01 +0000 |
---|---|---|
committer | Gary Houston <ghouston@arglist.com> | 2002-09-24 22:21:01 +0000 |
commit | 3553e1d1f037df79b10e5f8589884c02e57fe144 (patch) | |
tree | 827dc47b1b7937760b7a2cd2b682fab1553ad9d6 /libguile/num2float.i.c | |
parent | c15030bebf555969379628ef154f7f26ce1c6cd1 (diff) | |
download | guile-3553e1d1f037df79b10e5f8589884c02e57fe144.tar.gz |
* inline.h (scm_double_cell): prevent reordering of statements
with any following code (for GCC 3 strict-aliasing).
* numbers.c (scm_make_real), num2float.i.c (FLOAT2NUM): removed
the earlier version of the reordering prevention.
Diffstat (limited to 'libguile/num2float.i.c')
-rw-r--r-- | libguile/num2float.i.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libguile/num2float.i.c b/libguile/num2float.i.c index 5fd9180c7..08687a875 100644 --- a/libguile/num2float.i.c +++ b/libguile/num2float.i.c @@ -31,12 +31,8 @@ NUM2FLOAT (SCM num, unsigned long int pos, const char *s_caller) SCM FLOAT2NUM (FTYPE n) { - SCM z; - z = scm_double_cell (scm_tc16_real, 0, 0, 0); - /* - See scm_make_real(). - */ - scm_remember_upto_here_1 (z); + SCM z = scm_double_cell (scm_tc16_real, 0, 0, 0); + SCM_REAL_VALUE (z) = n; return z; } |