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

checker: improve checking of a << b, when a and b are numbers (#12589)

This commit is contained in:
Delyan Angelov
2021-11-29 02:48:49 +02:00
committed by GitHub
parent fe37da31a8
commit 6d97b0a407
33 changed files with 436 additions and 148 deletions

View File

@ -72,7 +72,7 @@ fn (mut bmp BitMap) format_texture() {
x[i + 1] = g
x[i + 2] = b
// alpha
x[i + 3] = byte((a * data) >> 8)
x[i + 3] = byte(u16(a * data) >> 8)
} else {
x[i + 0] = b_r
x[i + 1] = b_g