]> git.pld-linux.org Git - packages/libmng.git/blob - libmng-gcc4.patch
- added gtk and motif bconds
[packages/libmng.git] / libmng-gcc4.patch
1 GCC-4 fix:
2
3 mng.c: In function 'copyline':
4 mng.c:233: error: invalid lvalue in increment
5 mng.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.053163 seconds and 3 git commands to generate.