]> granicus.if.org Git - python/commitdiff
Fix a couple of warnings on Mac OS X.
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 24 Feb 2006 15:39:29 +0000 (15:39 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 24 Feb 2006 15:39:29 +0000 (15:39 +0000)
Mac/Modules/Nav.c
Mac/Modules/cf/pycfbridge.c

index 0041f765aea95403e9fc4066b91762c56af16357..6786ea029cb3508041202514acb361f65920f30f 100644 (file)
@@ -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;
index 30122dcdd06f4a2b18be85a53d91359873d15b59..ae9e128eac7cf4a474bb3ec2b040159471cc299a 100644 (file)
@@ -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;
        }