diff --git a/src/ngrams.c b/src/ngrams.c index 3992e7d0..905a6902 100644 --- a/src/ngrams.c +++ b/src/ngrams.c @@ -1,7 +1,7 @@ #include "ngrams.h" #include "utf8proc/utf8proc.h" -bool add_ngrams(cstring_array *grams, char *str, size_t n, size_t len, bool prefix, bool suffix) { +bool add_ngrams(cstring_array *grams, size_t n, char *str, size_t len, bool prefix, bool suffix) { if (n == 0) return false; size_t lengths[n]; diff --git a/src/ngrams.h b/src/ngrams.h index 8200b6ce..798a361e 100644 --- a/src/ngrams.h +++ b/src/ngrams.h @@ -1,3 +1,3 @@ #include "string_utils.h" -bool add_ngrams(cstring_array *grams, char *str, size_t n, size_t len, bool prefix, bool suffix); \ No newline at end of file +bool add_ngrams(cstring_array *grams, size_t n, char *str, size_t len, bool prefix, bool suffix);