aboutsummaryrefslogtreecommitdiff
path: root/converters/iconv-extra/files/patch-gcc41
blob: dbaaacec85e27c6f53ec1c9bcf1c63ea1568c6f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Index: ces/unicode-1-1-utf-7.c
===================================================================
RCS file: /home/bbcvs/iconv/ces/unicode-1-1-utf-7.c,v
retrieving revision 1.2
diff -u -r1.2 unicode-1-1-utf-7.c
--- ces/unicode-1-1-utf-7.c	22 Mar 2005 16:41:03 -0000	1.2
+++ ces/unicode-1-1-utf-7.c	14 Dec 2006 22:47:58 -0000
@@ -233,7 +233,7 @@
             if (*inbytesleft < 2)
                 return UCS_CHAR_NONE;
             needbytes = 1;
-            ch = char_type(*(++((unsigned char *)*inbuf)));
+            ch = char_type(*(++*inbuf));
             (*inbytesleft) --;
         case utf7_printable:
             utf7_state[0] = 0;
@@ -249,7 +249,7 @@
             (*inbytesleft) += needbytes;
             return UCS_CHAR_NONE;
         }
-        switch (char_type(*(++(unsigned char *)*inbuf))) {
+        switch (char_type(*(++*inbuf))) {
         case utf7_shift_out:
             (*inbuf) ++;
             (*inbytesleft) -= 2;
@@ -267,7 +267,7 @@
         return UCS_CHAR_INVALID;
     }
     (*inbytesleft) --;
-    return *((unsigned char *)*inbuf) ++;
+    return *(*inbuf)++;
 #undef utf7_state
 }