Mercurial > cpython-lru_cache-weakref
diff Modules/_struct.c @ 38583:e00e68dd1ddf legacy-trunk
s_methods[]: Stop compiler warnings by casting
s_unpack_from to PyCFunction.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Sun, 04 Jun 2006 15:49:07 +0000 |
| parents | a114003aa3d3 |
| children | e80097bf73b6 |
line wrap: on
line diff
--- a/Modules/_struct.c Sun Jun 04 14:24:59 2006 +0000 +++ b/Modules/_struct.c Sun Jun 04 15:49:07 2006 +0000 @@ -1669,7 +1669,8 @@ {"pack", s_pack, METH_VARARGS, s_pack__doc__}, {"pack_into", s_pack_into, METH_VARARGS, s_pack_into__doc__}, {"unpack", s_unpack, METH_O, s_unpack__doc__}, - {"unpack_from", s_unpack_from, METH_KEYWORDS, s_unpack_from__doc__}, + {"unpack_from", (PyCFunction)s_unpack_from, METH_KEYWORDS, + s_unpack_from__doc__}, {NULL, NULL} /* sentinel */ };
