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>
lilik-openwrt-22.03
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=''
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'


+ 4
- 4
lang/perl/files/config.sh-armeb.in View 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'


Loading…
Cancel
Save