I found a potential bug in the following line of code: non_sign_bits = total_bits - (1 if signed else 1) in create_dynamic_map in bitsandbytes/functional.py