Skip to content

Commit

Permalink
Fixed warnings on MacOS X 10.4.
Browse files Browse the repository at this point in the history
git-svn-id: svn://localhost/Crypt-GCrypt/trunk@80 c2f821fb-fd85-dc11-8383-000bcdcb7a8f
  • Loading branch information
al committed Jan 20, 2010
1 parent 1e27dd2 commit 677c420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GCrypt.xs
Expand Up @@ -1062,7 +1062,7 @@ cgm_print(gcm, format)
int format;
PREINIT:
size_t size;
char* buf;
unsigned char* buf;
gcry_error_t err;
CODE:
/* FIXME: make format default to FMT_STD somehow (how do we not require a parameter?) */
Expand All @@ -1071,7 +1071,7 @@ cgm_print(gcm, format)
/* FMT_HEX asks for an extra byte for the null char, but perl allocates that
already, so we treat that case special */
RETVAL = newSVpv("", ((format == GCRYMPI_FMT_HEX) ? size-1 : size));
buf = SvPV_nolen(RETVAL);
buf = (unsigned char*) SvPV_nolen(RETVAL);
err = gcry_mpi_print(format, buf, size, &size, gcm);
if (err != 0) croak("GCrypt::MPI::print finish: %s", gcry_strerror(err));
OUTPUT:
Expand Down

0 comments on commit 677c420

Please sign in to comment.