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:
@@ -501,7 +501,7 @@ fn (mut tf TTF_File) get_i8() i8 {
|
||||
}
|
||||
|
||||
fn (mut tf TTF_File) get_u16() u16 {
|
||||
x := u16(tf.buf[tf.pos] << u16(8)) | u16(tf.buf[tf.pos + 1])
|
||||
x := u16(tf.buf[tf.pos]) << 8 | u16(tf.buf[tf.pos + 1])
|
||||
tf.pos += 2
|
||||
return x
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user