X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fbinsearch.h;h=99bf33ada43f4e7da260099993707153d57cc1d8;hb=bc5f818d21b7aceaf2c0e263b00aa4295211d8f9;hp=f625c2ae5c71172c34ac976a3ff3430905d5ec8d;hpb=a4fe009d3366b0a3e119713b0ecc7fc0070efdfa;p=libucw.git diff --git a/ucw/binsearch.h b/ucw/binsearch.h index f625c2ae..99bf33ad 100644 --- a/ucw/binsearch.h +++ b/ucw/binsearch.h @@ -19,10 +19,10 @@ * The time complexity is `O(log(N))`. **/ #define BIN_SEARCH_FIRST_GE_CMP(ary,N,x,ary_lt_x) ({ \ - uns l = 0, r = (N); \ + uint l = 0, r = (N); \ while (l < r) \ { \ - uns m = (l+r)/2; \ + uint m = (l+r)/2; \ if (ary_lt_x(ary,m,x)) \ l = m+1; \ else \