From: Jérôme Benoit Date: Wed, 4 Apr 2018 10:07:24 +0000 (+0200) Subject: Coding style fixlets. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=527a553c7554c11d7b08dbf19c075b39e2390096;p=TP_POO.git Coding style fixlets. Signed-off-by: Jérôme Benoit --- 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) {