summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-07-29 08:25:09 (GMT)
committerGuido van Rossum <guido@python.org>1993-07-29 08:25:09 (GMT)
commit1fc238a813c0c3f5210cd39cf5c70d5f9b70fabe (patch)
treed6f70dd343ee9f7e22abb4bc8071514dd049c6be /Objects/dictobject.c
parenta3309960a50dbadfd854299e7420223eb8718a56 (diff)
downloadcpython-1fc238a813c0c3f5210cd39cf5c70d5f9b70fabe.zip
cpython-1fc238a813c0c3f5210cd39cf5c70d5f9b70fabe.tar.gz
cpython-1fc238a813c0c3f5210cd39cf5c70d5f9b70fabe.tar.bz2
Minor fixes / changes for Mac compatibility.
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index c50b35a..527b062 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -763,7 +763,7 @@ dictinsert(v, key, item)
last_name_object = newstringobject(key);
if (last_name_object == NULL) {
last_name_char = NULL;
- return NULL;
+ return -1;
}
last_name_char = key;
}
@@ -780,7 +780,7 @@ dictremove(v, key)
last_name_object = newstringobject(key);
if (last_name_object == NULL) {
last_name_char = NULL;
- return NULL;
+ return -1;
}
last_name_char = key;
}