fix a type mismatch in this pattern, where we were using an i64 imm in a