diff options
author | archie <archie@FreeBSD.org> | 2002-09-19 19:47:27 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2002-09-19 19:47:27 +0000 |
commit | 59b24d359e79c9c56ef1a3581b648326358c36f4 (patch) | |
tree | cfc65b2080b7272edf00045ee91c19c52dada324 /lib/libc/amd64 | |
parent | 0c5a203325d0f285b38bbb4332f66e3a52916648 (diff) | |
download | FreeBSD-src-59b24d359e79c9c56ef1a3581b648326358c36f4.zip FreeBSD-src-59b24d359e79c9c56ef1a3581b648326358c36f4.tar.gz |
Fix a problem with the definition of HUGE_VAL causing the gcc warning
"cast increases required alignment of target type" on some platforms.
Reviewed by: bde
Diffstat (limited to 'lib/libc/amd64')
-rw-r--r-- | lib/libc/amd64/gen/infinity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/amd64/gen/infinity.c b/lib/libc/amd64/gen/infinity.c index 966a06e..547927b 100644 --- a/lib/libc/amd64/gen/infinity.c +++ b/lib/libc/amd64/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 } }; |