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, ...@@ -131,7 +131,7 @@ filldialogoptions(PyObject *d,
OSType *fileTypeP, OSType *fileTypeP,
OSType *fileCreatorP) OSType *fileCreatorP)
{ {
int pos = 0; Py_ssize_t pos = 0;
PyObject *key, *value; PyObject *key, *value;
char *keystr; char *keystr;
AEDesc *defaultLocation_storage; AEDesc *defaultLocation_storage;
......
...@@ -283,7 +283,7 @@ PyCF_Python2CF_string(PyObject *src, CFStringRef *dst) { ...@@ -283,7 +283,7 @@ PyCF_Python2CF_string(PyObject *src, CFStringRef *dst) {
if (PyString_Check(src)) { if (PyString_Check(src)) {
if (!PyArg_Parse(src, "es", "ascii", &chars)) 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); *dst = CFStringCreateWithCString((CFAllocatorRef)NULL, chars, kCFStringEncodingASCII);
return 1; 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