diff options
author | marha <marha@users.sourceforge.net> | 2012-02-23 12:36:41 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-02-23 12:36:41 +0100 |
commit | c28585804e57d3da878c640be1369eed784ce52b (patch) | |
tree | 3dd0e856189f9c5fb4a28070355b832ab6ae7dac | |
parent | 769a37773769b08829f68e7f5ce0fc3bf66f6445 (diff) | |
download | vcxsrv-c28585804e57d3da878c640be1369eed784ce52b.tar.gz vcxsrv-c28585804e57d3da878c640be1369eed784ce52b.tar.bz2 vcxsrv-c28585804e57d3da878c640be1369eed784ce52b.zip |
Solved run-time errors due to type casting in debug
-rw-r--r-- | pixman/pixman/pixman-sse2.c | 6 |
1 files 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; } |