# New Ticket Created by NotFound # Please include the string: [perl #50238] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=50238 >
Hello. As I said in a previous message, there are two casts in pf_items.c that are unnecessary and seems to be wrong. This patch removes both, avoiding warnings. Tested in Ubuntu 7.10 on Intel platform. -- Salu2
Index: src/packfile/pf_items.c =================================================================== --- src/packfile/pf_items.c (revisión: 25206) +++ src/packfile/pf_items.c (copia de trabajo) @@ -236,7 +236,7 @@ opcode_t o[2]; } u; /* wordsize = 8 then */ - fetch_buf_le_8(u.buf, (unsigned char *) b); + fetch_buf_le_8(u.buf, b); return u.o[0]; /* or u.o[1] */ #else union { @@ -270,7 +270,7 @@ opcode_t o[2]; } u; /* wordsize = 8 then */ - fetch_buf_be_8(u.buf, (unsigned char *) b); + fetch_buf_be_8(u.buf, b); return u.o[1]; /* or u.o[0] */ #else union {