From 8c0708d2ab74b885cd8cca9525be3320947df5e2 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Fri, 26 Jan 2024 06:08:12 -0800 Subject: [PATCH] remove unnecessary idx run iterator assertion in converter; 'twas asserting that no nodes remained in the bake phase when reaching the end of the idx run section, but this does not hold in all cases (e.g. in the case where there is an empty idx run added last) --- src/raddbg_cons/raddbg_cons.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/raddbg_cons/raddbg_cons.c b/src/raddbg_cons/raddbg_cons.c index 4f889fc5..6e2214db 100644 --- a/src/raddbg_cons/raddbg_cons.c +++ b/src/raddbg_cons/raddbg_cons.c @@ -399,8 +399,6 @@ cons_bake_file(Arena *arena, CONS_Root *root, String8List *out){ MemoryCopy(out_ptr, node->idx_run, sizeof(*node->idx_run)*node->count); out_ptr += node->count; } - // both iterators should reach the end at the same time - Assert(node == 0); Assert(out_ptr == opl); }