[Python-checkins] CVS: python/dist/src/Objects typeobject.c,2.16.8.69,2.16.8.70
Guido van Rossum
gvanrossum@users.sourceforge.net
Fri, 20 Jul 2001 09:26:56 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv6130
Modified Files:
Tag: descr-branch
typeobject.c
Log Message:
Add a few (void*) casts to make the VMS C compiler happier. Addresses
SF bug #442998 (partially).
Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.16.8.69
retrieving revision 2.16.8.70
diff -C2 -r2.16.8.69 -r2.16.8.70
*** typeobject.c 2001/07/19 16:22:13 2.16.8.69
--- typeobject.c 2001/07/20 16:26:54 2.16.8.70
***************
*** 1835,1839 ****
#define ADD(SLOT, TABLE) \
if (SLOT) { \
! if (add_wrappers(type, TABLE, SLOT) < 0) \
return -1; \
}
--- 1835,1839 ----
#define ADD(SLOT, TABLE) \
if (SLOT) { \
! if (add_wrappers(type, TABLE, (void *)(SLOT)) < 0) \
return -1; \
}
***************
*** 1915,1919 ****
if (type->tp_new != NULL)
! add_staticmethodwrappers(type, tab_new, type->tp_new);
return 0;
--- 1915,1920 ----
if (type->tp_new != NULL)
! add_staticmethodwrappers(type, tab_new,
! (void *)(type->tp_new));
return 0;