diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-06-02 19:31:18 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2014-06-02 19:31:18 +0000 |
commit | 9f804b96c1c66368d4a1b1993bbde232e4e6a3b3 (patch) | |
tree | 492771adfed0985afe3dbf3062956c9b607d7386 /lib | |
parent | 8a44cf76de43b01fa5c615a63dd4837ac82da37d (diff) |
Make sure STRICT_ASSIGN handles double as well. From FreeBSD, where the
commit messages that fixes this says:
"it was intentionally left broken as an optimization".
right!
ok martynas@, daniel@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libm/src/math_private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libm/src/math_private.h b/lib/libm/src/math_private.h index 4c3220d2b51..5bece0cbe6f 100644 --- a/lib/libm/src/math_private.h +++ b/lib/libm/src/math_private.h @@ -1,4 +1,4 @@ -/* $OpenBSD: math_private.h,v 1.16 2013/11/12 20:35:09 martynas Exp $ */ +/* $OpenBSD: math_private.h,v 1.17 2014/06/02 19:31:17 kettenis Exp $ */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. @@ -349,7 +349,7 @@ do { \ #define STRICT_ASSIGN(type, lval, rval) do { \ volatile type __lval; \ \ - if (sizeof(type) >= sizeof(double)) \ + if (sizeof(type) >= sizeof(long double)) \ (lval) = (rval); \ else { \ __lval = (rval); \ |