summaryrefslogtreecommitdiffstats
path: root/lib/libm/src
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2014-06-02 19:31:17 +0000
committerkettenis <kettenis@openbsd.org>2014-06-02 19:31:17 +0000
commit3609bd3bc5b2da286f66e84614acf704fc8facb5 (patch)
tree6e6beef1b09f2ad7efa9bc05b3313bfd789ac554 /lib/libm/src
parentmerge ohash into 1 source file, then we can revisit next roadmap items. (diff)
downloadwireguard-openbsd-3609bd3bc5b2da286f66e84614acf704fc8facb5.tar.xz
wireguard-openbsd-3609bd3bc5b2da286f66e84614acf704fc8facb5.zip
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/libm/src')
-rw-r--r--lib/libm/src/math_private.h4
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); \