]> git.draconx.ca Git - liblbx.git/blobdiff - src/image.c
"Soften" the format assertions so that they no longer abort().
[liblbx.git] / src / image.c
index 336cd98ebd4951cfb049d24c10db6f3eeaf55864..81f66e015e6e05e602dfca397d78901f7355d959 100644 (file)
@@ -51,8 +51,8 @@ struct lbx_image *lbximg_fopen(FILE *f)
         * If we never find any exceptions, we can replace the assertions with
         * assumptions.
         */
-       assert(tmp.wtf1 == 0);
-       assert(tmp.offs == tmp.frames + 1);
+       _lbx_assert(tmp.wtf1 == 0);
+       _lbx_assert(tmp.offs == tmp.frames + 1);
 
        new = malloc(sizeof *new + tmp.offs * sizeof *new->offsets);
        if (!new) {