summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwayne C. Litzenberger <dlitz@dlitz.net>2009-10-10 16:16:49 -0400
committerDwayne C. Litzenberger <dlitz@dlitz.net>2009-10-11 01:08:12 -0400
commit0b6982e7dd9c16ba9d86a588391c399e5d43729e (patch)
tree51e515aac9c094459e8da8c983128710cd267ad3
parentbf7a2e75983fba643482136a6c5e97a764134881 (diff)
downloadpycrypto-0b6982e7dd9c16ba9d86a588391c399e5d43729e.tar.gz
Counter: Fix compiler warning: initialization from incompatible pointer type
-rw-r--r--src/_counter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/_counter.c b/src/_counter.c
index 451d285..4d0d9de 100644
--- a/src/_counter.c
+++ b/src/_counter.c
@@ -391,8 +391,8 @@ CounterBE_new(PyObject *self, PyObject *args)
*/
static PyMethodDef module_methods[] = {
- {"_newLE", &CounterLE_new, METH_VARARGS, NULL},
- {"_newBE", &CounterBE_new, METH_VARARGS, NULL},
+ {"_newLE", (PyCFunction) CounterLE_new, METH_VARARGS, NULL},
+ {"_newBE", (PyCFunction) CounterBE_new, METH_VARARGS, NULL},
{NULL, NULL, 0, NULL} /* end-of-list sentinel value */
};