diff options
author | jb <jb@FreeBSD.org> | 2007-11-23 05:52:13 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2007-11-23 05:52:13 +0000 |
commit | c19d527aecd7125581c274876f401832a3d5dd06 (patch) | |
tree | 4cc1ab19c991b2d7f37c8d0eb9f3666abc79b405 /lib | |
parent | d6cbafc55256a1bf766f2cce1f2e06640c71ae3c (diff) | |
download | FreeBSD-src-c19d527aecd7125581c274876f401832a3d5dd06.zip FreeBSD-src-c19d527aecd7125581c274876f401832a3d5dd06.tar.gz |
Use an intermediate pointer to avoid a strict aliasing warning.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sparc64/fpu/fpu_explode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/sparc64/fpu/fpu_explode.c b/lib/libc/sparc64/fpu/fpu_explode.c index 0195a46..09cfd5a 100644 --- a/lib/libc/sparc64/fpu/fpu_explode.c +++ b/lib/libc/sparc64/fpu/fpu_explode.c @@ -260,10 +260,11 @@ __fpu_explode(fe, fp, type, reg) { u_int32_t s, *sp; u_int64_t l[2]; + void *vl = l; if (type == FTYPE_LNG || type == FTYPE_DBL || type == FTYPE_EXT) { l[0] = __fpu_getreg64(reg & ~1); - sp = (u_int32_t *)l; + sp = vl; fp->fp_sign = sp[0] >> 31; } else { s = __fpu_getreg(reg); |