diff options
Diffstat (limited to 'Objects/mappingobject.c')
-rw-r--r-- | Objects/mappingobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/mappingobject.c b/Objects/mappingobject.c index c50b35a..527b062 100644 --- a/Objects/mappingobject.c +++ b/Objects/mappingobject.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; } |