bcachefs: varint: Avoid left-shift of a negative value

Shifting a negative value left is undefined.

Signed-off-by: Tavian Barnes <tavianator@tavianator.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Tavian Barnes 2024-06-21 16:39:58 -04:00 • committed by Kent Overstreet
commit ee1b8dc17a