Project

General

Profile

Bug #12939 ยป st.patch

The patch fixing the bug - vmakarov (Vladimir Makarov), 11/14/2016 10:53 PM

View differences:

st.c
/* Return the number of allocated bins of table TAB. */
static inline st_index_t
get_bins_num(const st_table *tab) {
return 1<<tab->bin_power;
return ((st_index_t) 1)<<tab->bin_power;
}
/* Return mask for a bin index in table TAB. */
......
/* Return the number of allocated entries of table TAB. */
static inline st_index_t
get_allocated_entries(const st_table *tab) {
return 1<<tab->entry_power;
return ((st_index_t) 1)<<tab->entry_power;
}
/* Return size of the allocated bins of table TAB. */
    (1-1/1)