Skip to content

Commit 5f43731

Browse files
author
neal.norwitz
committed
Get rid of some warnings.
git-svn-id: http://svn.python.org/projects/python/trunk@43148 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent b6ece3a commit 5f43731

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Mac/Modules/cf/_CFmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ int CFDataRefObj_Convert(PyObject *v, CFDataRef *p_itself)
13291329
if (v == Py_None) { *p_itself = NULL; return 1; }
13301330
if (PyString_Check(v)) {
13311331
char *cStr;
1332-
int cLen;
1332+
Py_ssize_t cLen;
13331333
if( PyString_AsStringAndSize(v, &cStr, &cLen) < 0 ) return 0;
13341334
*p_itself = CFDataCreate((CFAllocatorRef)NULL, (unsigned char *)cStr, cLen);
13351335
return 1;
@@ -1826,7 +1826,7 @@ int CFStringRefObj_Convert(PyObject *v, CFStringRef *p_itself)
18261826
if (PyString_Check(v)) {
18271827
char *cStr;
18281828
if (!PyArg_Parse(v, "es", "ascii", &cStr))
1829-
return NULL;
1829+
return 0;
18301830
*p_itself = CFStringCreateWithCString((CFAllocatorRef)NULL, cStr, kCFStringEncodingASCII);
18311831
return 1;
18321832
}

0 commit comments

Comments
 (0)