Ticket #18101: 0001-perl-Make-I8-I16-I32-types-explicitly-signed-for-PPC.patch

File 0001-perl-Make-I8-I16-I32-types-explicitly-signed-for-PPC.patch, 1.0 KB (added by Naoir, 3 years ago)
  • lang/perl/files/config.sh-powerpc.in

    From 75c4b564bc051c8e199119e0b18671aac4f6b86a Mon Sep 17 00:00:00 2001
    From: Marcel Denia <naoir@gmx.net>
    Date: Sat, 11 Oct 2014 16:53:38 +0200
    Subject: [PATCH] perl: Make I8/I16/I32 types explicitly signed for PPC
    
    Type signedness is undefined for char. char may actually be unsigned for
    some CPUs.
    This fixes various bugs on PPC, like negative array indices.
    
    Signed-off-by: Marcel Denia <naoir@gmx.net>
    ---
     lang/perl/files/config.sh-powerpc.in | 8 ++++----
     1 file changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/lang/perl/files/config.sh-powerpc.in b/lang/perl/files/config.sh-powerpc.in
    index 39b5955..ec935dd 100644
    a b html1direxp='' 
    600600html3dir=' ' 
    601601html3direxp='' 
    602602i16size='2' 
    603 i16type='short' 
     603i16type='signed short' 
    604604i32size='4' 
    605 i32type='long' 
     605i32type='signed long' 
    606606i64size='8' 
    607 i64type='long long' 
     607i64type='signed long long' 
    608608i8size='1' 
    609 i8type='char' 
     609i8type='signed char' 
    610610i_arpainet='define' 
    611611i_bsdioctl='' 
    612612i_crypt='define'