This fixes undefined behavior, which is reported when compiled with -fsanitize=undefined.
The ~ operator results in an integer promotion of _bits, with the result being negative. The following shift results in undefined behavior. Casting to bound_type solves this issue.
I think I successfully ran all unit tests. The jamfile automatically executes them, right?
This fixes undefined behavior, which is reported when compiled with -fsanitize=undefined.
The ~ operator results in an integer promotion of _bits, with the result being negative. The following shift results in undefined behavior. Casting to bound_type solves this issue.
I think I successfully ran all unit tests. The jamfile automatically executes them, right?