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

Skip to content

Commit c1f0882

Browse files
committed
Added (binaryfunc) casts to function pointers in method lists.
1 parent 24a4994 commit c1f0882

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Modules/zlibmodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -580,15 +580,15 @@ PyZlib_unflush(self, args)
580580

581581
static PyMethodDef comp_methods[] =
582582
{
583-
{"compress", PyZlib_objcompress, 1, comp_compress__doc__},
584-
{"flush", PyZlib_flush, 0, comp_flush__doc__},
583+
{"compress", (binaryfunc)PyZlib_objcompress, 1, comp_compress__doc__},
584+
{"flush", (binaryfunc)PyZlib_flush, 0, comp_flush__doc__},
585585
{NULL, NULL}
586586
};
587587

588588
static PyMethodDef Decomp_methods[] =
589589
{
590-
{"decompress", PyZlib_objdecompress, 1, decomp_decompress__doc__},
591-
{"flush", PyZlib_unflush, 0, decomp_flush__doc__},
590+
{"decompress", (binaryfunc)PyZlib_objdecompress, 1, decomp_decompress__doc__},
591+
{"flush", (binaryfunc)PyZlib_unflush, 0, decomp_flush__doc__},
592592
{NULL, NULL}
593593
};
594594

0 commit comments

Comments
 (0)