Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rheatley-pervasid authored and zpl-zak committed Jan 20, 2023
1 parent 1da91f4 commit ab346d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion code/source/adt.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ zpl_adt_node *zpl_adt_alloc_at(zpl_adt_node *parent, zpl_isize index) {

zpl_adt_node o = {0};
o.parent = parent;
zpl_array_append_at(parent->nodes, o, index);
if (!zpl_array_append_at(parent->nodes, o, index))
return NULL;

return parent->nodes + index;
}
Expand Down
1 change: 0 additions & 1 deletion code/source/parsers/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ zpl_b8 zpl_json_write(zpl_file *f, zpl_adt_node *o, zpl_isize indent) {

if (o->nodes) {
zpl_isize cnt = zpl_array_count(o->nodes);
fprintf(stderr, "HERE %zi", cnt);

for (int i = 0; i < cnt; ++i) {
if (!zpl__json_write_value(f, o->nodes + i, o, indent, false, !(i < cnt - 1))) return false;
Expand Down

0 comments on commit ab346d1

Please sign in to comment.