Commit 8786eb5e authored by Neal Norwitz's avatar Neal Norwitz

Fix a couple of warnings on Mac OS X.

parent 39fd2317
......@@ -131,7 +131,7 @@ filldialogoptions(PyObject *d,
OSType *fileTypeP,
OSType *fileCreatorP)
{
int pos = 0;
Py_ssize_t pos = 0;
PyObject *key, *value;
char *keystr;
AEDesc *defaultLocation_storage;
......
......@@ -283,7 +283,7 @@ PyCF_Python2CF_string(PyObject *src, CFStringRef *dst) {
if (PyString_Check(src)) {
if (!PyArg_Parse(src, "es", "ascii", &chars))
return NULL; /* This error is more descriptive than the general one below */
return 0; /* This error is more descriptive than the general one below */
*dst = CFStringCreateWithCString((CFAllocatorRef)NULL, chars, kCFStringEncodingASCII);
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment