From ec3365b10f7cc8d07926ba8377212f1793e26ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 11 Mar 2013 17:20:12 +0100 Subject: Algorithms-I : 3-Collinear: oops I've broken it --- Algorithms/Part-I/3-Collinear/Point.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Algorithms/Part-I/3-Collinear/Point.java b/Algorithms/Part-I/3-Collinear/Point.java index 7307d04..bd5bbe7 100644 --- a/Algorithms/Part-I/3-Collinear/Point.java +++ b/Algorithms/Part-I/3-Collinear/Point.java @@ -60,7 +60,7 @@ public class Point implements Comparable { double sq = slopeTo(q); if (sp < sq) return -1; if (sp > sq) return 1; - return p.compareTo(q); + return 0; } } -- cgit v1.1-2-g2b99