ensure volatile declaration for abandoned_next field

This commit is contained in:
daan 2019-08-23 13:44:43 -07:00 committed by daan
parent 25ea9cf142
commit 15552eba79
3 changed files with 11 additions and 8 deletions

View file

@ -130,6 +130,7 @@ extern inline uint8_t _mi_bin(size_t size) {
// - adjust with 3 because we use do not round the first 8 sizes
// which each get an exact bin
bin = ((b << 2) + (uint8_t)((wsize >> (b - 2)) & 0x03)) - 3;
mi_assert_internal(bin < MI_BIN_HUGE);
}
mi_assert_internal(bin > 0 && bin <= MI_BIN_HUGE);
return bin;