summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2011-12-18 09:54:47 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-01-09 05:40:33 -0500
commitd788f762788c2178970ff0ff2cb6e0097171cc3c (patch)
tree258707431fc3e6023b1a80f1363d74bf23aef8d7
parent4f3fe9c9096b2261217c2d4beb7d5eb8e578ed76 (diff)
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.
-rw-r--r--pixman/pixman-trap.c2
1 files changed, 1 insertions, 1 deletions
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;
}