Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed warnings on MacOS X 10.4.

git-svn-id: svn://localhost/Crypt-GCrypt/trunk@80 c2f821fb-fd85-dc11-8383-000bcdcb7a8f
  • Loading branch information...
commit 677c4205e2fe20ae1a5b6597692a63c269102ae8 1 parent 1e27dd2
al authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 GCrypt.xs
View
4 GCrypt.xs
@@ -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?) */
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.