diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/dictobject.c | 4 | ||||
-rw-r--r-- | Objects/listobject.c | 2 | ||||
-rw-r--r-- | Objects/mappingobject.c | 4 |
3 files changed, 5 insertions, 5 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; } diff --git a/Objects/listobject.c b/Objects/listobject.c index b51e3d8..38829e2 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -442,7 +442,7 @@ setlistslice(a, ilow, ihigh, v) { if (!is_listobject(a)) { err_badcall(); - return NULL; + return -1; } return list_ass_slice((listobject *)a, ilow, ihigh, v); } 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; } |