From 74713ffb62620a514f844ef53220ace0ef0dd217 Mon Sep 17 00:00:00 2001 From: invisiblesoldiers <51095962+invisiblesoldiers@users.noreply.github.com> Date: Mon, 13 Jan 2020 23:58:14 +0500 Subject: [PATCH] encoding.binary: removed unneeded castings, rename function --- vlib/encoding/binary/binary.v | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vlib/encoding/binary/binary.v b/vlib/encoding/binary/binary.v index 4167f72107..3a140a636d 100644 --- a/vlib/encoding/binary/binary.v +++ b/vlib/encoding/binary/binary.v @@ -4,9 +4,9 @@ module binary // Little Endian [inline] -pub fn little_endian_endian_u16(b []byte) u16 { +pub fn little_endian_u16(b []byte) u16 { _ = b[1] // bounds check - return u16(b[0]) | u16(u16(b[1])<