[Zodb-checkins] CVS: StandaloneZODB/BTrees - intkeymacros.h:1.7

Jeremy Hylton jeremy@zope.com
Wed, 10 Oct 2001 16:36:59 -0400


Update of /cvs-repository/StandaloneZODB/BTrees
In directory cvs.zope.org:/tmp/cvs-serv25183

Modified Files:
	intkeymacros.h 
Log Message:
Use PyInt_AS_LONG after explicit PyInt_Check().


=== StandaloneZODB/BTrees/intkeymacros.h 1.6 => 1.7 ===
 #define COPY_KEY_TO_OBJECT(O, K) O=PyInt_FromLong(K)
 #define COPY_KEY_FROM_ARG(TARGET, ARG, STATUS) \
-  if (PyInt_Check(ARG)) TARGET=PyInt_AsLong(ARG); else { \
+  if (PyInt_Check(ARG)) TARGET=PyInt_AS_LONG(ARG); else { \
       PyErr_SetString(PyExc_TypeError, "expected integer key"); \
       (STATUS)=0; (TARGET)=0; }