From d788f762788c2178970ff0ff2cb6e0097171cc3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Sun, 18 Dec 2011 09:54:47 -0500 Subject: [PATCH] Add missing cast in _pixman_edge_multi_init() nx and e->dy are both 32 bit quantities, so a cast is needed to make sure their product is 64 bit before subtracting it from a 64 bit quantity. --- pixman/pixman-trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pixman/pixman-trap.c b/pixman/pixman-trap.c index c99f03e..adf5d7b 100644 --- a/pixman/pixman-trap.c +++ b/pixman/pixman-trap.c @@ -139,7 +139,7 @@ _pixman_edge_multi_init (pixman_edge_t * e, if (ne > 0) { int nx = ne / e->dy; - ne -= nx * e->dy; + ne -= nx * (pixman_fixed_48_16_t)e->dy; stepx += nx * e->signdx; } -- 2.7.4