commit 6342cb9d82b7f87eb4d571f8f0d3216b62b29865
parent 9efa55da332eb26071bfa474b5422ccb64f6eb8a
Author: Remy Noulin <loader2x@gmail.com>
Date: Sat, 21 Nov 2020 21:29:29 +0100
fix error in getAtSmallJson and getAtSmallContainer for smallArray and smallJson classes
src/json/libsheepyCSmallArray.c | 6 ------
src/json/libsheepyCSmallJson.c | 6 ------
2 files changed, 12 deletions(-)
Diffstat:
2 files changed, 0 insertions(+), 12 deletions(-)
diff --git a/src/json/libsheepyCSmallArray.c b/src/json/libsheepyCSmallArray.c
@@ -6671,9 +6671,6 @@ internal smallJsont* getAtSmallJsonSmallArray(smallArrayt *self, intmax_t index)
if (!o) {
return(NULL);
}
- if (o->type != DICT) {
- return(NULL);
- }
if ((o->type == BYTES) || (o->type == CONTAINER)) {
return(NULL);
}
@@ -6734,9 +6731,6 @@ internal smallContainert* getAtSmallContainerSmallArray(smallArrayt *self, intma
if (!o) {
return(NULL);
}
- if (o->type != DICT) {
- return(NULL);
- }
if (o->type != CONTAINER) {
return(NULL);
}
diff --git a/src/json/libsheepyCSmallJson.c b/src/json/libsheepyCSmallJson.c
@@ -19641,9 +19641,6 @@ internal smallJsont* getAtSmallJsonSmallJson(smallJsont *self, intmax_t index) {
if (!o) {
return(NULL);
}
- if (o->type != DICT) {
- return(NULL);
- }
if ((o->type == BYTES) || (o->type == CONTAINER)) {
return(NULL);
}
@@ -19712,9 +19709,6 @@ internal smallContainert* getAtSmallContainerSmallJson(smallJsont *self, intmax_
if (!o) {
return(NULL);
}
- if (o->type != DICT) {
- return(NULL);
- }
if (o->type != CONTAINER) {
return(NULL);
}