fixed test4
authorMatthias Kramm <kramm@quiss.org>
Wed, 7 Apr 2010 01:37:26 +0000 (18:37 -0700)
committerMatthias Kramm <kramm@quiss.org>
Wed, 7 Apr 2010 01:37:26 +0000 (18:37 -0700)
lib/gfxpoly/poly.c

index 4459cbf..02193df 100644 (file)
@@ -196,7 +196,7 @@ char gfxpoly_check(gfxpoly_t*poly)
         if(count&1) {
             fprintf(stderr, "Point (%d,%d) occurs %d times\n", p->x, p->y, count);
             dict_destroy(d);
         if(count&1) {
             fprintf(stderr, "Point (%d,%d) occurs %d times\n", p->x, p->y, count);
             dict_destroy(d);
-           assert(count%2 == 0);
+           return 0;
         }
     }
     dict_destroy(d);
         }
     }
     dict_destroy(d);