summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/atimach64render.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/atimach64render.c b/src/atimach64render.c
index 8a6ebbca..dda39381 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 { \