diff options
| author | Bruce Evans <bde@FreeBSD.org> | 2008-01-19 22:05:14 +0000 |
|---|---|---|
| committer | Bruce Evans <bde@FreeBSD.org> | 2008-01-19 22:05:14 +0000 |
| commit | 5b62c3808eab80fd36bad2d97d6852888671dfd9 (patch) | |
| tree | df50e9a8fd313ca5eab645acc93b1b4a02ee6084 /lib/msun | |
| parent | 2d6d5e16042472622b230c90008993de36ebe079 (diff) | |
Notes
Diffstat (limited to 'lib/msun')
| -rw-r--r-- | lib/msun/src/math_private.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/msun/src/math_private.h b/lib/msun/src/math_private.h index 15ef4fbea9da..3514712c7417 100644 --- a/lib/msun/src/math_private.h +++ b/lib/msun/src/math_private.h @@ -164,8 +164,12 @@ do { \ #define STRICT_ASSIGN(type, lval, rval) do { \ volatile type __lval; \ \ - __lval = (rval); \ - (lval) = __lval; \ + if (sizeof(type) >= sizeof(double)) \ + (lval) = (rval); \ + else { \ + __lval = (rval); \ + (lval) = __lval; \ + } \ } while (0) #endif #endif |
