aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/pybase.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2008-01-04 11:59:00 +0000
committerThomas Grill <xovo@users.sourceforge.net>2008-01-04 11:59:00 +0000
commitb9bddf9e90aad64a237dbbb29342b6bd66a92bcc (patch)
tree6aef87b3c73b63df08f2e7545f799df99f611567 /externals/grill/py/source/pybase.cpp
parent447335814bd329b12ef2d9064e055f3cdfbf61dd (diff)
compilation fixes for Python 2.5, OSX
cross-platform fixes more cross-platform and version fixes compilation fixes for Python 2.5 svn path=/trunk/; revision=9122
Diffstat (limited to 'externals/grill/py/source/pybase.cpp')
-rw-r--r--externals/grill/py/source/pybase.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/externals/grill/py/source/pybase.cpp b/externals/grill/py/source/pybase.cpp
index c22a1143..033219e4 100644
--- a/externals/grill/py/source/pybase.cpp
+++ b/externals/grill/py/source/pybase.cpp
@@ -6,7 +6,7 @@ For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.
$LastChangedRevision: 26 $
-$LastChangedDate: 2008-01-03 17:20:03 +0100 (Thu, 03 Jan 2008) $
+$LastChangedDate: 2008-01-03 18:00:03 +0100 (Thu, 03 Jan 2008) $
$LastChangedBy: thomas $
*/
@@ -678,7 +678,7 @@ void pybase::Reload()
if(reg) {
PyObject *key;
- int pos = 0;
+ Py_ssize_t pos = 0;
while(PyDict_Next(reg,&pos,&key,NULL)) {
pybase *th = (pybase *)PyLong_AsLong(key);
FLEXT_ASSERT(th);
@@ -697,7 +697,7 @@ void pybase::Reload()
SetRegistry(REGNAME,reg);
PyObject *key;
- int pos = 0;
+ Py_ssize_t pos = 0;
while(PyDict_Next(reg,&pos,&key,NULL)) {
pybase *th = (pybase *)PyLong_AsLong(key);
FLEXT_ASSERT(th);