Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix indentation in BoyerMoore.h

  • Loading branch information...
commit 8d333cb1a6a141570786ca212a9e2f9c10a650ee 1 parent 28be6a6
@bnoordhuis authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 BoyerMoore.h
View
8 BoyerMoore.h
@@ -18,12 +18,12 @@ static void compute_prefix(const uint8_t* str, size_t size, int result[]) {
while (k > 0 && str[k] != str[q])
k = result[k-1];
- if (str[k] == str[q])
- k++;
+ if (str[k] == str[q])
+ k++;
- result[q] = k;
- }
+ result[q] = k;
}
+}
static void prepare_badcharacter_heuristic(const uint8_t *str, size_t size, int result[ALPHABET_SIZE]) {
size_t i;
Please sign in to comment.
Something went wrong with that request. Please try again.