Skip Menu |

This queue is for tickets about the Net_SSLeay.pm CPAN distribution.

Report information
The Basics
Id: 47521
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Net_SSLeay.pm

People
Owner: MIKEM [...] cpan.org
Requestors: ryan [...] cardtrak.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Net-SSLeay ptr_cast_test.c
Date: Thu, 2 Jul 2009 17:15:47 -0400
To: bug-net_ssleay.pm [...] rt.cpan.org
From: Ryan McGuigan <ryan [...] cardtrak.com>
Here is a diff against Net-SSLeay 1.35 to fix warnings when compiling ptr_cast_test.c under some gcc compiler versions, which causes the 00_ptr_cast.t test to fail incorrectly. diff -ru Net-SSLeay-1.35-old/t/local/ptr_cast_test.c Net-SSLeay-1.35/t/local/ptr_cast_test.c --- Net-SSLeay-1.35-old/t/local/ptr_cast_test.c 2007-10-16 08:26:45.000000000 +0000 +++ Net-SSLeay-1.35/t/local/ptr_cast_test.c 2009-07-02 20:55:02.000000000 +0000 @@ -24,7 +24,7 @@ volatile TOTYPE i; /* prevent optimization */ printf("# %s: '%s' len: %d, '%s' len: %d.\n", argv[0], FROMTYPESTR, - sizeof(TOTYPE), TOTYPESTR, sizeof(char *)); + (int)sizeof(TOTYPE), TOTYPESTR, (int)sizeof(char *)); i = (TOTYPE)bufptr; if( ((FROMTYPE)i) != bufptr ) { Regards, -Ryan
Thanks for your report. Your patch has been applied to the SVN version and will appear in the next release. Cheers.