From f16fc18221cd8d1a8cb1bf9e40790f3b482fb199 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Sun, 20 Sep 2026 11:25:42 +0200 Subject: Add another example --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index a538e13..94eab37 100644 --- a/src/debug.c +++ b/src/debug.c @@ -12,7 +12,7 @@ void print_subassemblies(struct constraints *c, struct subassembly *assemblies, for(size_t i = 0; i < assemblies_num; i++) { struct subassembly *a = &assemblies[i]; fprintf(stderr, "Assembly %zu: %zu steps, fix=%zu, fixed=%s, parent=%zu\n", - i, a->steps_num, a->fix, a->fixed ? "yes" : "no", a->folded_into-assemblies); + i, a->steps_num, a->fix, a->fixed ? "yes" : "no", a->folded_into == NULL ? 0 : a->folded_into-assemblies); if(a->articulation_num > 0) { fprintf(stderr, " Articulations (%zu):\n", a->articulation_num); -- cgit v1.2.3