diff dmlib.h @ 138:459a1be2bd0f

A minor improvement to FP_CONV() fixed point macro.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 05 Oct 2012 05:43:17 +0300
parents c36e0316de9f
children e147c07e41cb
line wrap: on
line diff
--- a/dmlib.h	Fri Oct 05 05:26:54 2012 +0300
+++ b/dmlib.h	Fri Oct 05 05:43:17 2012 +0300
@@ -114,7 +114,7 @@
 #  define FP_SET(a, k) a.dw = k
 #endif
 
-#define FP_CONV(a, k) a.dw = k
+#define FP_CONV(a, k) a.dw = (k)
 
 #ifndef SDL_BYTEORDER
 #  error Undefined byteorder!