From 72a70d44ab6768ee9d82f13d536b4951841cc9df Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 2 Feb 2015 12:11:58 +0100 Subject: Populate README --- problem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'problem.cpp') diff --git a/problem.cpp b/problem.cpp index c919710..bcae056 100644 --- a/problem.cpp +++ b/problem.cpp @@ -110,7 +110,7 @@ vector solution::direct_sol(const hilare_a &pos_a, const hilare_a &pos int eps[4][2] = { { 1, 1 }, { 1, -1 }, { -1, 1 }, { -1, -1 } }; double delta = cca.x * ccb.y - cca.y * ccb.x; - assert(delta != 0); + if (delta == 0) return ret; // no solution in this case, we count on direct_sol_r for (int i_eps = 0; i_eps < 4; i_eps++) { int ea = eps[i_eps][0]; -- cgit v1.2.3