test: Fix compilation on win32
authorAndrea Canciani <ranma42@gmail.com>
Sun, 4 Sep 2011 18:07:57 +0000 (20:07 +0200)
committerAndrea Canciani <ranma42@gmail.com>
Wed, 14 Sep 2011 14:02:59 +0000 (07:02 -0700)
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

index a38cac5..eb436d1 100644 (file)
@@ -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)