diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-24 15:39:29 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-02-24 15:39:29 (GMT) |
commit | 8786eb5e9220dc85ab3190ca0d47375acd08ff30 (patch) | |
tree | 8a398a12d5a651b7658d3b2dac9217e18639b518 /Mac/Modules/cf/pycfbridge.c | |
parent | 39fd2317016371bbcf3c3861ffe66f980d6eab1c (diff) | |
download | cpython-8786eb5e9220dc85ab3190ca0d47375acd08ff30.zip cpython-8786eb5e9220dc85ab3190ca0d47375acd08ff30.tar.gz cpython-8786eb5e9220dc85ab3190ca0d47375acd08ff30.tar.bz2 |
Fix a couple of warnings on Mac OS X.
Diffstat (limited to 'Mac/Modules/cf/pycfbridge.c')
-rw-r--r-- | Mac/Modules/cf/pycfbridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/cf/pycfbridge.c b/Mac/Modules/cf/pycfbridge.c index 30122dc..ae9e128 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; } |