]> granicus.if.org Git - python/commitdiff
Add proper (getattrfunc) cast in Pcre_Type.
authorGuido van Rossum <guido@python.org>
Mon, 20 Oct 1997 23:21:23 +0000 (23:21 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 20 Oct 1997 23:21:23 +0000 (23:21 +0000)
Modules/pcremodule.c

index d7615d1d7012c6497f9f2315e3ff48302f4fbb14..73af3cad5db7a81ed0035c8d52164a2cd27af61b 100644 (file)
@@ -164,7 +164,7 @@ staticforward PyTypeObject Pcre_Type = {
        /* methods */
        (destructor)PyPcre_dealloc, /*tp_dealloc*/
        0,                      /*tp_print*/
-       PyPcre_getattr,                      /*tp_getattr*/
+       (getattrfunc)PyPcre_getattr, /*tp_getattr*/
        0,                      /*tp_setattr*/
        0,                      /*tp_compare*/
        0,                      /*tp_repr*/