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