mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler/vlib: change _ := to _ = and disable _ :=
This commit is contained in:
committed by
Alexander Medvednikov
parent
746655c1d5
commit
8974aa4513
@@ -43,7 +43,7 @@ import (
|
||||
|
||||
// Encrypt one block from src into dst, using the expanded key xk.
|
||||
fn encrypt_block_generic(xk []u32, dst, src []byte) {
|
||||
mut _ := src[15] // early bounds check
|
||||
_ = src[15] // early bounds check
|
||||
mut s0 := binary.big_endian_u32(src.left(4))
|
||||
mut s1 := binary.big_endian_u32(src.slice(4, 8))
|
||||
mut s2 := binary.big_endian_u32(src.slice(8, 12))
|
||||
@@ -95,7 +95,7 @@ fn encrypt_block_generic(xk []u32, dst, src []byte) {
|
||||
|
||||
// Decrypt one block from src into dst, using the expanded key xk.
|
||||
fn decrypt_block_generic(xk []u32, dst, src []byte) {
|
||||
mut _ := src[15] // early bounds check
|
||||
_ = src[15] // early bounds check
|
||||
mut s0 := binary.big_endian_u32(src.left(4))
|
||||
mut s1 := binary.big_endian_u32(src.slice(4, 8))
|
||||
mut s2 := binary.big_endian_u32(src.slice(8, 12))
|
||||
|
||||
@@ -68,7 +68,7 @@ pub fn (c mut Cipher) xor_key_stream(dst mut []byte, src []byte) {
|
||||
}
|
||||
mut i := c.i
|
||||
mut j := c.j
|
||||
_ := dst[src.len-1]
|
||||
_ = dst[src.len-1]
|
||||
*dst = dst.left(src.len) // eliminate bounds check from loop
|
||||
for k, v in src {
|
||||
i += byte(1)
|
||||
|
||||
Reference in New Issue
Block a user