Re: [PATCH v2] utf8: use ARRAY_SIZE() in git_wcwidth()

2019-10-11 Thread Junio C Hamano
Beat Bolli writes: > diff --git a/utf8.c b/utf8.c > index 3b42fadffd..5c8f151f75 100644 > --- a/utf8.c > +++ b/utf8.c > @@ -95,13 +95,11 @@ static int git_wcwidth(ucs_char_t ch) > return -1; > > /* binary search in table of non-spacing characters */ > - if (bisearch(ch,

[PATCH v2] utf8: use ARRAY_SIZE() in git_wcwidth()

2019-10-11 Thread Beat Bolli
This macro has been available globally since b4f2a6ac92 ("Use #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))", 2006-03-09), so let's use it. Signed-off-by: Beat Bolli --- Brown paperbag fix. Sorry! It's idle to speculate about why the macro wasn't used in the original 9e83266525 ("commit-tree: e