From: Marcel Denia Date: Tue, 22 Jul 2014 00:32:42 +0000 (+0200) Subject: lang/perl: Make I8/I16/I32 types explicitly signed for ARM X-Git-Tag: v14.07~76^2~8 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=a1993737aa58e64d339e41b966329bd584050b65;p=feed%2Fpackages.git lang/perl: Make I8/I16/I32 types explicitly signed for ARM Type signedness is undefined for char. char may actually be unsigned for some CPUs. This fixes various bugs on ARM, for example negative array indices. Signed-off-by: Marcel Denia --- diff --git a/lang/perl/files/config.sh-arm.in b/lang/perl/files/config.sh-arm.in index a7c197d0a1..7d6d0cd255 100644 --- a/lang/perl/files/config.sh-arm.in +++ b/lang/perl/files/config.sh-arm.in @@ -601,13 +601,13 @@ html1direxp='' html3dir=' ' html3direxp='' i16size='2' -i16type='short' +i16type='signed short' i32size='4' -i32type='long' +i32type='signed long' i64size='8' -i64type='long long' +i64type='signed long long' i8size='1' -i8type='char' +i8type='signed char' i_arpainet='define' i_bsdioctl='' i_crypt='define' diff --git a/lang/perl/files/config.sh-armeb.in b/lang/perl/files/config.sh-armeb.in index e56d51f36c..e180a5cca4 100644 --- a/lang/perl/files/config.sh-armeb.in +++ b/lang/perl/files/config.sh-armeb.in @@ -601,13 +601,13 @@ html1direxp='' html3dir=' ' html3direxp='' i16size='2' -i16type='short' +i16type='signed short' i32size='4' -i32type='long' +i32type='signed long' i64size='8' -i64type='long long' +i64type='signed long long' i8size='1' -i8type='char' +i8type='signed char' i_arpainet='define' i_bsdioctl='' i_crypt='define'