lang/perl: Make I8/I16/I32 types explicitly signed for ARM
authorMarcel Denia <naoir@gmx.net>
Tue, 22 Jul 2014 00:32:42 +0000 (02:32 +0200)
committerMarcel Denia <naoir@gmx.net>
Tue, 22 Jul 2014 14:18:46 +0000 (16:18 +0200)
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 <naoir@gmx.net>
lang/perl/files/config.sh-arm.in
lang/perl/files/config.sh-armeb.in

index a7c197d0a1a2b44cd38d0d9e0cf2f5333c3d8a45..7d6d0cd255384188e4be923c777c76052349b71f 100644 (file)
@@ -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'
index e56d51f36c26ce1c1777e5cb7069a44327c0762c..e180a5cca4ee2652e52ebc8ce7ca6d58516d50e1 100644 (file)
@@ -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'