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

v.fmt: fix fmt of 'fn(mut a &int)' (#12075)

This commit is contained in:
yuyi
2021-10-07 01:51:38 +08:00
committed by GitHub
parent f1742a6f62
commit 963233687e
3 changed files with 5 additions and 6 deletions

View File

@ -63,7 +63,7 @@ pub fn (m Mat4) str() string {
s += ' '
}
for j in 0 .. 4 {
val := unsafe {m.data[i * 4 + j]}
val := unsafe { m.data[i * 4 + j] }
s += '${val:5.2f} '
}
if i != 3 {
@ -249,7 +249,7 @@ pub fn mult(a Mat4, b Mat4) Mat4 {
for r in 0 .. 4 {
mut prod := f32(0)
for c in 0 .. 4 {
prod += unsafe {a.data[c * 4 + r] * b.data[i * 4 + c]}
prod += unsafe { a.data[c * 4 + r] * b.data[i * 4 + c] }
}
unsafe {
out[i * 4 + r] = prod