summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/gen/infinity.c
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2002-10-31 23:05:20 +0000
committerarchie <archie@FreeBSD.org>2002-10-31 23:05:20 +0000
commitd93f84495b026a1b7c262a0bfe1b9c0b3175105b (patch)
tree8d7fa3106ac92267f105d9e4b9d8fad61d60e197 /lib/libc/i386/gen/infinity.c
parentc8c942c58702c5da3dfad5e12db60c6f57cbba51 (diff)
downloadFreeBSD-src-d93f84495b026a1b7c262a0bfe1b9c0b3175105b.zip
FreeBSD-src-d93f84495b026a1b7c262a0bfe1b9c0b3175105b.tar.gz
Re-apply the previously backed-out commit that fixes the problem where
HUGE_VAL is not properly aligned on some architectures. The previous fix now works because the two versions of 'math.h' (include/math.h and lib/msun/src/math.h) have since been merged into one. PR: bin/43544
Diffstat (limited to 'lib/libc/i386/gen/infinity.c')
-rw-r--r--lib/libc/i386/gen/infinity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/i386/gen/infinity.c b/lib/libc/i386/gen/infinity.c
index 966a06e..547927b 100644
--- a/lib/libc/i386/gen/infinity.c
+++ b/lib/libc/i386/gen/infinity.c
@@ -8,4 +8,4 @@ __FBSDID("$FreeBSD$");
#include <math.h>
/* bytes for +Infinity on a 387 */
-char __infinity[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f };
+const union __infinity_un __infinity = { { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } };
OpenPOWER on IntegriCloud