summaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2026-09-20 11:25:42 +0200
committerJesper Jensen <jesper@jnsn.dev>2026-09-20 11:25:42 +0200
commitf16fc18221cd8d1a8cb1bf9e40790f3b482fb199 (patch)
tree55e96733668c2637437849638f79072a87ec8149 /src/debug.c
parent3bc85ce682ca92e2c6a17753f46c23f3902b60c7 (diff)
downloadconstraint-f16fc18221cd8d1a8cb1bf9e40790f3b482fb199.tar.gz
constraint-f16fc18221cd8d1a8cb1bf9e40790f3b482fb199.zip
Add another example
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c2
1 files changed, 1 insertions, 1 deletions
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);