checker: add missing check when assignment statement lvalue is ParExpr (fix #19819) (#19830)

This commit is contained in:
shove 2023-11-11 18:27:00 +08:00 committed by GitHub
parent c0eeb85eab
commit e92d210bd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 39 additions and 8 deletions

View file

@ -556,7 +556,9 @@ fn ray_trace(w int, h int, samps int, file_name string, scene_id int) Image {
d.mult_s(140.0), d.norm()}, 0, scene_id).mult_s(samps1)
}
tmp_vec := Vec{clamp(r.x), clamp(r.y), clamp(r.z)}.mult_s(.25)
(*ivec) = *ivec + tmp_vec
unsafe {
(*ivec) = *ivec + tmp_vec
}
}
}
}