diff --git a/tests/utils.c b/tests/utils.c
index dde6e03c41477b43bde33da2735aefe3dd26807b..f2441046c37b20089a2c506d7d102fff9f0a7816 100644
--- a/tests/utils.c
+++ b/tests/utils.c
@@ -25,7 +25,7 @@
 
 #define SCALEBITS 8
 #define ONE_HALF  (1 << (SCALEBITS - 1))
-#define FIX(x)    ((int) ((x) * (1L << SCALEBITS) + 0.5))
+#define FIX(x)    ((int) ((x) * (1 << SCALEBITS) + 0.5))
 
 #define err_if(expr) do {                                              \
     if (expr) {                                                        \