diff --git a/slides/cours_13.md b/slides/cours_13.md index 8cbbf96a5da0d5ebfb035c0523e9603521a62210..d6d3d138e232715775a661f28dd8486d267a61a2 100644 --- a/slides/cours_13.md +++ b/slides/cours_13.md @@ -137,7 +137,7 @@ bool binary_get1(int n, value_key_t table[n], key_t key, value_t *value) { int top = n - 1, bottom = 0; while (top > bottom) { int middle = (top + bottom) / 2; - if (x > table[middle]) { + if (key > table[middle].key) { bottom = middle+1; } else { top = middle;