@@ -3109,7 +3109,7 @@ Return a readonly version of the memoryview."); |
|
|
3109 |
3109 |
|
3110 |
3110 |
static PyMethodDef memory_methods[] = { |
3111 |
3111 |
{"release", (PyCFunction)memory_release, METH_NOARGS, memory_release_doc}, |
3112 |
|
- {"tobytes", (PyCFunction)memory_tobytes, METH_VARARGS|METH_KEYWORDS, memory_tobytes_doc}, |
|
3112 |
+ {"tobytes", (PyCFunction)(void(*)(void))memory_tobytes, METH_VARARGS|METH_KEYWORDS, memory_tobytes_doc}, |
3113 |
3113 |
{"hex", (PyCFunction)memory_hex, METH_NOARGS, memory_hex_doc}, |
3114 |
3114 |
{"tolist", (PyCFunction)memory_tolist, METH_NOARGS, memory_tolist_doc}, |
3115 |
3115 |
{"cast", (PyCFunction)(void(*)(void))memory_cast, METH_VARARGS|METH_KEYWORDS, memory_cast_doc}, |