Skip to content

Commit 8786eb5

Browse files
committed
Fix a couple of warnings on Mac OS X.
1 parent 39fd231 commit 8786eb5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Mac/Modules/Nav.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ filldialogoptions(PyObject *d,
131131
OSType *fileTypeP,
132132
OSType *fileCreatorP)
133133
{
134-
int pos = 0;
134+
Py_ssize_t pos = 0;
135135
PyObject *key, *value;
136136
char *keystr;
137137
AEDesc *defaultLocation_storage;

Mac/Modules/cf/pycfbridge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ PyCF_Python2CF_string(PyObject *src, CFStringRef *dst) {
283283

284284
if (PyString_Check(src)) {
285285
if (!PyArg_Parse(src, "es", "ascii", &chars))
286-
return NULL; /* This error is more descriptive than the general one below */
286+
return 0; /* This error is more descriptive than the general one below */
287287
*dst = CFStringCreateWithCString((CFAllocatorRef)NULL, chars, kCFStringEncodingASCII);
288288
return 1;
289289
}

0 commit comments

Comments
 (0)