mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
remove unnecessary mut argument (#2016)
This commit is contained in:
parent
19b04d5427
commit
9c9e6290a6
@ -31,7 +31,7 @@ pub fn little_endian_put_u32(b mut []byte, v u32) {
|
||||
b[3] = byte(v >> u32(24))
|
||||
}
|
||||
|
||||
pub fn little_endian_u64(b mut []byte) u64 {
|
||||
pub fn little_endian_u64(b []byte) u64 {
|
||||
_ := b[7] // bounds check
|
||||
return u64(b[0]) | u64(u64(b[1])<<u64(8)) | u64(u64(b[2])<<u64(16)) | u64(u64(b[3])<<u64(24)) |
|
||||
u64(u64(b[4])<<u64(32)) | u64(u64(b[5])<<u64(40)) | u64(u64(b[6])<<u64(48)) | u64(u64(b[7])<<u64(56))
|
||||
|
Loading…
Reference in New Issue
Block a user