Browse Source

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 <naoir@gmx.net>
Marcel Denia 10 years ago
parent
commit
a1993737aa
2 changed files with 8 additions and 8 deletions
  1. 4
    4
      lang/perl/files/config.sh-arm.in
  2. 4
    4
      lang/perl/files/config.sh-armeb.in

+ 4
- 4
lang/perl/files/config.sh-arm.in View File

@@ -601,13 +601,13 @@ html1direxp=''
601 601
 html3dir=' '
602 602
 html3direxp=''
603 603
 i16size='2'
604
-i16type='short'
604
+i16type='signed short'
605 605
 i32size='4'
606
-i32type='long'
606
+i32type='signed long'
607 607
 i64size='8'
608
-i64type='long long'
608
+i64type='signed long long'
609 609
 i8size='1'
610
-i8type='char'
610
+i8type='signed char'
611 611
 i_arpainet='define'
612 612
 i_bsdioctl=''
613 613
 i_crypt='define'

+ 4
- 4
lang/perl/files/config.sh-armeb.in View File

@@ -601,13 +601,13 @@ html1direxp=''
601 601
 html3dir=' '
602 602
 html3direxp=''
603 603
 i16size='2'
604
-i16type='short'
604
+i16type='signed short'
605 605
 i32size='4'
606
-i32type='long'
606
+i32type='signed long'
607 607
 i64size='8'
608
-i64type='long long'
608
+i64type='signed long long'
609 609
 i8size='1'
610
-i8type='char'
610
+i8type='signed char'
611 611
 i_arpainet='define'
612 612
 i_bsdioctl=''
613 613
 i_crypt='define'