pike.git / src / post_modules / CritBit / tree_low.c

version» Context lines:

pike.git/src/post_modules/CritBit/tree_low.c:21:   #ifndef CB_FATAL   # define CB_FATAL(x) (printf x, exit(4))   #endif      #ifndef CB_ERROR   # define CB_ERROR CB_FATAL   #endif      #ifndef cb_prefix_count   # define cb_prefix_count cb_prefix_count_fallback - #else - # undef cb_prefix_count - # define cb_prefix_count cb_prefix_count_fallback +    #endif      #ifndef CB_SOURCE   # define CB_SOURCE   #endif      static inline void cb_zap_node(const struct cb_tree*, cb_node_t);   static inline cb_node_t cb_node_from_string(const struct cb_tree*,    const cb_key, const cb_value *);   
pike.git/src/post_modules/CritBit/tree_low.c:49:    key.str = string;    key.len.chars = CB_LENGTH(string);    key.len.bits = 0;    return key;   }      static inline cb_size cb_prefix_count_fallback(const cb_string s1,    const cb_string s2,    const cb_size len,    cb_size start) { -  size_t i; +  ptrdiff_t i;    unsigned INT32 width = MAX(CB_WIDTH(s1), CB_WIDTH(s2));       for (i = start.chars; i < len.chars; i++) {    unsigned INT32 diffbit = CB_COUNT_PREFIX(s1, s2, i);    start.bits = 0;       if (diffbit < width) { /* are different */   #ifdef ANNOY_DEBUG    fprintf(stderr, "diff in bit %d (byte %d) %d\n", diffbit, i, __LINE__);   #endif