summaryrefslogtreecommitdiff
path: root/src/cairo-bentley-ottmann.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-10-01 12:34:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2008-10-04 10:12:37 +0100
commit7db03ac68cd556c903c07a2e2f8b75ec51263d12 (patch)
tree1d98d595c08a630bbdd95f8469beb957eb331502 /src/cairo-bentley-ottmann.c
parent59e569576d00e9c1cb66a77cf447c3cc3fb038e7 (diff)
downloadcairo-7db03ac68cd556c903c07a2e2f8b75ec51263d12.tar.gz
[tessellator] Use abort() instead of exit().
More friendly when debugging, as the debug will (by default) catch the SIGTRAP and break at the offending test.
Diffstat (limited to 'src/cairo-bentley-ottmann.c')
-rw-r--r--src/cairo-bentley-ottmann.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-bentley-ottmann.c b/src/cairo-bentley-ottmann.c
index 6e46476e1..a78745d1b 100644
--- a/src/cairo-bentley-ottmann.c
+++ b/src/cairo-bentley-ottmann.c
@@ -547,7 +547,7 @@ intersect_lines (cairo_bo_edge_t *a,
qr = _cairo_int_96by64_32x64_divrem (det64_128 (a_det, dx1,
b_det, dx2),
den_det);
- if (_cairo_int64_eq (qr.rem,den_det))
+ if (_cairo_int64_eq (qr.rem, den_det))
return CAIRO_BO_STATUS_NO_INTERSECTION;
intersection->x.ordinate = qr.quo;
intersection->x.exactness = qr.rem ? INEXACT : EXACT;
@@ -1196,13 +1196,13 @@ _cairo_bo_sweep_line_validate (cairo_bo_sweep_line_t *sweep_line)
{
if (SKIP_ELT_TO_EDGE (elt) != edge) {
fprintf (stderr, "*** Error: Sweep line fails to validate: Inconsistent data in the two lists.\n");
- exit (1);
+ abort ();
}
}
if (edge || elt) {
fprintf (stderr, "*** Error: Sweep line fails to validate: One list ran out before the other.\n");
- exit (1);
+ abort ();
}
}
#endif