From dff59000d43c5449b3ed79ff144236c17b507bd6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 7 Oct 2014 07:18:47 +0100 Subject: sna/trapezoids: Remove stale assert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The variable changed meaning, but the assert did not. Fix that up. Reported-by: Matti Hämäläinen Signed-off-by: Chris Wilson --- src/sna/sna_trapezoids_imprecise.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sna/sna_trapezoids_imprecise.c') diff --git a/src/sna/sna_trapezoids_imprecise.c b/src/sna/sna_trapezoids_imprecise.c index 865a7232..414e80a2 100644 --- a/src/sna/sna_trapezoids_imprecise.c +++ b/src/sna/sna_trapezoids_imprecise.c @@ -473,7 +473,8 @@ polygon_add_edge(struct polygon *polygon, struct edge *e = &polygon->edges[polygon->num_edges]; int ytop, ybot; - assert (dy > 0); + assert(t->bottom > t->top); + assert(edge->p2.y > edge->p1.y); e->dir = dir; -- cgit v1.2.3