[Python-checkins] CVS: python/dist/src/Python bltinmodule.c,2.174,2.175
Trent Mick
python-dev@python.org
Sat, 12 Aug 2000 14:35:39 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv25235/Python
Modified Files:
bltinmodule.c
Log Message:
Clean up a couple of warnings on Win64. The downcast of the strlen size_t
return value to int is safe here because in each case it previouls checked that
there will be no overflow.
Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.174
retrieving revision 2.175
diff -C2 -r2.174 -r2.175
*** bltinmodule.c 2000/08/03 15:45:29 2.174
--- bltinmodule.c 2000/08/12 21:35:36 2.175
***************
*** 431,435 ****
return NULL;
s = s_buffer;
! len = strlen(s);
}
else if (PyObject_AsCharBuffer(v, &s, &len)) {
--- 431,435 ----
return NULL;
s = s_buffer;
! len = (int)strlen(s);
}
else if (PyObject_AsCharBuffer(v, &s, &len)) {