From c28585804e57d3da878c640be1369eed784ce52b Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 23 Feb 2012 12:36:41 +0100 Subject: Solved run-time errors due to type casting in debug --- pixman/pixman/pixman-sse2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pixman/pixman/pixman-sse2.c b/pixman/pixman/pixman-sse2.c index ab7da2a42..db1489a25 100644 --- a/pixman/pixman/pixman-sse2.c +++ b/pixman/pixman/pixman-sse2.c @@ -3293,14 +3293,14 @@ pixman_fill_sse2 (uint32_t *bits, if (w >= 1 && ((unsigned long)d & 1)) { - *(uint8_t *)d = data; + *(uint8_t *)d = data&0xff; w -= 1; d += 1; } while (w >= 2 && ((unsigned long)d & 3)) { - *(uint16_t *)d = data; + *(uint16_t *)d = data&0xffff; w -= 2; d += 2; } @@ -3366,7 +3366,7 @@ pixman_fill_sse2 (uint32_t *bits, if (w >= 2) { - *(uint16_t *)d = data; + *(uint16_t *)d = data&0xffff; w -= 2; d += 2; } -- cgit v1.2.3