Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f045914

Browse files
committed
Fix icc warnings: extra semi-colon and signed vs unsigned
1 parent 3f04648 commit f045914

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Modules/_hashopenssl.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ static PyTypeObject EVPtype;
3333
static EVP_MD_CTX CONST_new_ ## Name ## _ctx; \
3434
static EVP_MD_CTX *CONST_new_ ## Name ## _ctx_p = NULL;
3535

36-
DEFINE_CONSTS_FOR_NEW(md5);
37-
DEFINE_CONSTS_FOR_NEW(sha1);
38-
DEFINE_CONSTS_FOR_NEW(sha224);
39-
DEFINE_CONSTS_FOR_NEW(sha256);
40-
DEFINE_CONSTS_FOR_NEW(sha384);
41-
DEFINE_CONSTS_FOR_NEW(sha512);
36+
DEFINE_CONSTS_FOR_NEW(md5)
37+
DEFINE_CONSTS_FOR_NEW(sha1)
38+
DEFINE_CONSTS_FOR_NEW(sha224)
39+
DEFINE_CONSTS_FOR_NEW(sha256)
40+
DEFINE_CONSTS_FOR_NEW(sha384)
41+
DEFINE_CONSTS_FOR_NEW(sha512)
4242

4343

4444
static EVPobject *
@@ -101,7 +101,7 @@ EVP_digest(EVPobject *self, PyObject *args)
101101

102102
EVP_MD_CTX_copy(&temp_ctx, &self->ctx);
103103
digest_size = EVP_MD_CTX_size(&temp_ctx);
104-
EVP_DigestFinal(&temp_ctx, (char *)digest, NULL);
104+
EVP_DigestFinal(&temp_ctx, digest, NULL);
105105

106106
retval = PyString_FromStringAndSize((const char *)digest, digest_size);
107107
EVP_MD_CTX_cleanup(&temp_ctx);
@@ -329,7 +329,7 @@ static PyTypeObject EVPtype = {
329329
static PyObject *
330330
EVPnew(PyObject *name_obj,
331331
const EVP_MD *digest, const EVP_MD_CTX *initial_ctx,
332-
const char *cp, unsigned int len)
332+
const unsigned char *cp, unsigned int len)
333333
{
334334
EVPobject *self;
335335

0 commit comments

Comments
 (0)