summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-02-24 15:39:29 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-02-24 15:39:29 +0000
commit8786eb5e9220dc85ab3190ca0d47375acd08ff30 (patch)
tree8a398a12d5a651b7658d3b2dac9217e18639b518
parent39fd2317016371bbcf3c3861ffe66f980d6eab1c (diff)
downloadcpython-git-8786eb5e9220dc85ab3190ca0d47375acd08ff30.tar.gz
Fix a couple of warnings on Mac OS X.
-rw-r--r--Mac/Modules/Nav.c2
-rw-r--r--Mac/Modules/cf/pycfbridge.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/Nav.c b/Mac/Modules/Nav.c
index 0041f765ae..6786ea029c 100644
--- a/Mac/Modules/Nav.c
+++ b/Mac/Modules/Nav.c
@@ -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;
diff --git a/Mac/Modules/cf/pycfbridge.c b/Mac/Modules/cf/pycfbridge.c
index 30122dcdd0..ae9e128eac 100644
--- a/Mac/Modules/cf/pycfbridge.c
+++ b/Mac/Modules/cf/pycfbridge.c
@@ -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;
}