fix C compiler warning in Py2.4