mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 19:21:01 +00:00
d2t() scales a fraction in the range [0, 1] to the range of a biased token (same as unsigned long). But x86 doesn't support conversion to unsigned, only signed, so this is a truncating conversion. Clang's ubsan correctly warns about it. Fix by reducing the range before converting, and expanding it afterwards. Closes #7376