Correct the initialization of 'max_vx'
authorRolland Dudemaine <rolland@ghs.com>
Tue, 25 Jan 2011 12:52:49 +0000 (14:52 +0200)
committerSiarhei Siamashka <siarhei.siamashka@nokia.com>
Tue, 25 Jan 2011 12:55:24 +0000 (14:55 +0200)
http://lists.freedesktop.org/archives/pixman/2011-January/000937.html

pixman/pixman-fast-path.h

index b829030..069a282 100644 (file)
@@ -265,7 +265,7 @@ fast_composite_scaled_nearest  ## scale_func_name (pixman_implementation_t *imp,
     dst_type_t *dst_line;                                                                      \
     src_type_t *src_first_line;                                                                        \
     int       y;                                                                               \
-    pixman_fixed_t max_vx = max_vx; /* suppress uninitialized variable warning */              \
+    pixman_fixed_t max_vx = INT32_MAX; /* suppress uninitialized variable warning */           \
     pixman_fixed_t max_vy;                                                                     \
     pixman_vector_t v;                                                                         \
     pixman_fixed_t vx, vy;                                                                     \