]> git.pld-linux.org Git - packages/libmng.git/blame - libmng-gcc4.patch
- gcc4 fixes.
[packages/libmng.git] / libmng-gcc4.patch
CommitLineData
941dd60c
PS
1GCC-4 fix:
2
3mng.c: In function 'copyline':
4mng.c:233: error: invalid lvalue in increment
5mng.c:270: error: invalid lvalue in increment
6
7--- libmng-1.0.9/contrib/gcc/fbmngplay/mng.c.orig 2005-01-30 11:50:23.000000000 +0100
8+++ libmng-1.0.9/contrib/gcc/fbmngplay/mng.c 2005-02-05 22:42:39.130650312 +0100
9@@ -230,7 +230,8 @@
10 a = a * mymng->alpha / 100;\r
11 switch (mymng->fbbpp) {\r
12 case 16:\r
13- input = *((unsigned short *) background)++;\r
14+ input = *(unsigned short *)background;
15+ background += 2;
16 br = (input >> 8) & 0xf8;\r
17 bg = (input >> 3) & 0xfc;\r
18 bb = input << 3 & 0xff;\r
19@@ -267,7 +268,8 @@
20 b >>= 3;\r
21 \r
22 output = (r << 11) | (g << 5) | b;\r
23- *((unsigned short *) dest)++ = output;\r
24+ *((unsigned short *)dest) = output;
25+ dest += 2;
26 break;\r
27 case 24:\r
28 *dest++ = b;\r
This page took 0.084661 seconds and 4 git commands to generate.