1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: check unsafe array assign (fix #9651) (#15515)

This commit is contained in:
yuyi
2022-08-25 13:52:13 +08:00
committed by GitHub
parent 86496aa191
commit c662431cfd
24 changed files with 84 additions and 48 deletions

View File

@ -55,8 +55,8 @@ fn newton_divide_array_by_array(operand_a []u32, operand_b []u32, mut quotient [
q.inc()
r -= b
}
quotient = q.digits
remainder = r.digits
quotient = q.digits.clone()
remainder = r.digits.clone()
shrink_tail_zeros(mut remainder)
}
@ -241,7 +241,7 @@ fn toom3_multiply_digit_array(operand_a []u32, operand_b []u32, mut storage []u3
result := (((pinf.lshift(s) + t2).lshift(s) + t1).lshift(s) + tm1).lshift(s) + p0
storage = result.digits
storage = result.digits.clone()
}
[inline]