gif: fix invalid signed shifts