diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-03-15 17:26:56 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-03-15 17:26:56 +0100 |
commit | 2d2fb54ba370c1df9ef5102e83c17a7ff5c55403 (patch) | |
tree | ef4e73d9fc933795e1c7093fa9a5fa4c263d765d /src/atimach64render.c | |
parent | cfb82631fb683a0dc9bbc8f2d214646a8f1bca0b (diff) |
atimisc: Fix strict aliasing violation flagged by -Wall.
Diffstat (limited to 'src/atimach64render.c')
-rw-r--r-- | src/atimach64render.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/atimach64render.c b/src/atimach64render.c index 8a6ebbc..dda3938 100644 --- a/src/atimach64render.c +++ b/src/atimach64render.c @@ -769,7 +769,14 @@ do { \ _v.argb = _col; \ } while (0) -#define FVAL(_fval) (*(CARD32 *)&(_fval)) +static __inline__ CARD32 +FVAL(float f) +{ + union { float f; CARD32 c; } fc; + + fc.f = f; + return fc.c; +} #define VTX_OUT(_v, n) \ do { \ |