From a1993737aa58e64d339e41b966329bd584050b65 Mon Sep 17 00:00:00 2001 From: Marcel Denia Date: Tue, 22 Jul 2014 02:32:42 +0200 Subject: [PATCH] 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 --- lang/perl/files/config.sh-arm.in | 8 ++++---- lang/perl/files/config.sh-armeb.in | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lang/perl/files/config.sh-arm.in b/lang/perl/files/config.sh-arm.in index a7c197d0a..7d6d0cd25 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 e56d51f36..e180a5cca 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'