chiark / gitweb /
Another assertion.
authorBen Harris <bjh21@bjh21.me.uk>
Mon, 17 Jul 2017 22:23:44 +0000 (23:23 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Mon, 17 Jul 2017 22:23:44 +0000 (23:23 +0100)
bedstead.c

index cc9b71b868a4501f71f2fca10a56ac4b14e01a0f..f47f521b43324328798e43f412208a27125f8909 100644 (file)
@@ -1906,6 +1906,7 @@ join_ends(point *a, point *b)
        assert(a->prev != NULL);
        assert(b->prev == NULL);
        assert(b->next != NULL);
+       assert(vec_eqp(a->v, b->v));
        a->next = b;
        b->prev = a;
        fix_identical(a); /* Will delete a */