diff options
author | Robey Pointer <robey@lag.net> | 2006-08-14 19:47:56 -0700 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2006-08-14 19:47:56 -0700 |
commit | a4bac7499e37f5346c99bc173105a1526b68181d (patch) | |
tree | e9612d37b4db82b3a18bc073cd037dad0905362e /src/hash_template.c | |
parent | c2ef7d6f49efa17da0908409e25a3ca1fc0fc0f8 (diff) | |
download | pycrypto-a4bac7499e37f5346c99bc173105a1526b68181d.tar.gz |
[project @ robey@lag.net-20060815024756-0ee4d018bde70abe]
fix a few gcc warnings about signed/unsigned char and system-header-defined macros
Diffstat (limited to 'src/hash_template.c')
-rw-r--r-- | src/hash_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash_template.c b/src/hash_template.c index 6662dd5..b296fbc 100644 --- a/src/hash_template.c +++ b/src/hash_template.c @@ -105,11 +105,11 @@ ALG_hexdigest(ALGobject *self, PyObject *args) /* Get the raw (binary) digest value */ value = (PyObject *)hash_digest(&(self->st)); size = PyString_Size(value); - raw_digest = PyString_AsString(value); + raw_digest = (unsigned char *) PyString_AsString(value); /* Create a new string */ retval = PyString_FromStringAndSize(NULL, size * 2 ); - hex_digest = PyString_AsString(retval); + hex_digest = (unsigned char *) PyString_AsString(retval); /* Make hex version of the digest */ for(i=j=0; i<size; i++) |