[Pixman] [PATCH 1/7] test: Fix compilation on win32

Andrea Canciani ranma42 at gmail.com
Sun Sep 4 13:53:39 PDT 2011


Adding scaling-helpers-test to the testsuite on win32 makes MSVC
complain about int64_t being used as an expression:

scaling-helpers-test.c(27) : error C2275: 'int64_t' : illegal use of
this type as an expression
---
 test/scaling-helpers-test.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/scaling-helpers-test.c b/test/scaling-helpers-test.c
index a38cac5..eb436d1 100644
--- a/test/scaling-helpers-test.c
+++ b/test/scaling-helpers-test.c
@@ -20,12 +20,12 @@ bilinear_pad_repeat_get_scanline_bounds_ref (int32_t        source_image_width,
 					     int32_t *      right_pad)
 {
     int w = *width;
+    int64_t vx = vx_;
     *left_pad = 0;
     *left_tz = 0;
     *width = 0;
     *right_tz = 0;
     *right_pad = 0;
-    int64_t vx = vx_;
     while (--w >= 0)
     {
 	if (vx < 0)
-- 
1.7.4.4



More information about the Pixman mailing list