swr/rematrix: fix C99 left shift overflow