Package: zh-autoconvert
Severity: normal
Tags: patch

When building 'zh-autoconvert' on amd64 with gcc-4.0,
I get the following error:

gcc -I../include -fPIC -O2 -Wall -g -D_REENTRANT -c b2u.c
b2u.c: In function 'b2u':
b2u.c:54: error: invalid lvalue in assignment
b2u.c: In function 'big2uni':
b2u.c:123: warning: implicit declaration of function 'memcpy'
b2u.c:123: warning: incompatible implicit declaration of built-in function 
'memcpy'
b2u.c: In function 'uni2big':
b2u.c:163: warning: incompatible implicit declaration of built-in function 
'memcpy'
make[2]: *** [b2u.o] Error 1
make[2]: Leaving directory `/zh-autoconvert-0.3.14/hzconvert'

With the attached patch 'zh-autoconvert' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/zh-autoconvert-0.3.14/hzconvert/b2u.c ./hzconvert/b2u.c
--- ../tmp-orig/zh-autoconvert-0.3.14/hzconvert/b2u.c   2001-04-28 
01:45:46.000000000 +0000
+++ ./hzconvert/b2u.c   2005-02-27 14:40:22.439589949 +0000
@@ -51,7 +51,7 @@
                }
        }
 */
-       c2 -= c2 >= 0xa1 ? (0xa1 - 63) : 0x40;
+       s[1] = c2 - (c2 >= 0xa1 ? (0xa1 - 63) : 0x40);
         i= ((c1 - 0xa1)*157 + c2) * 2;
        t[1] = BtoU[i++];  t[0] = BtoU[i];
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to