sparsearray.m: Cast to 32 bit before shifting.