From 527a553c7554c11d7b08dbf19c075b39e2390096 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 4 Apr 2018 12:07:24 +0200 Subject: [PATCH] Coding style fixlets. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- Entiers/Entiers.java | 2 +- TP2/Entiers.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Entiers/Entiers.java b/Entiers/Entiers.java index c878f63..70f4248 100644 --- a/Entiers/Entiers.java +++ b/Entiers/Entiers.java @@ -67,7 +67,7 @@ class Entiers { return middle; else if (value > int_array[middle]) return binarySearch((middle + 1), last, value); - return binarySearch(first, (middle -1), value); + return binarySearch(first, (middle - 1), value); } public boolean supprimer(int value) { diff --git a/TP2/Entiers.java b/TP2/Entiers.java index b690d10..602ec8f 100644 --- a/TP2/Entiers.java +++ b/TP2/Entiers.java @@ -67,7 +67,7 @@ class Entiers extends Structure { return middle; else if (value > int_array[middle]) return binarySearch((middle + 1), last, value); - return binarySearch(first, (middle -1), value); + return binarySearch(first, (middle - 1), value); } public boolean supprimer(int value) { -- 2.34.1