]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/binsearch.h
tableprinter: code cleanup
[libucw.git] / ucw / binsearch.h
index f625c2ae5c71172c34ac976a3ff3430905d5ec8d..99bf33ada43f4e7da260099993707153d57cc1d8 100644 (file)
  * 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                                                     \