From 1c43204224281dc1a16553a3282e74f9c6a5d811 Mon Sep 17 00:00:00 2001 From: joe-conigliaro Date: Fri, 5 Jun 2020 00:28:34 +1000 Subject: [PATCH] table: remove extra parens & inline fn --- vlib/v/table/atypes.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/v/table/atypes.v b/vlib/v/table/atypes.v index d429df487f..df14032f48 100644 --- a/vlib/v/table/atypes.v +++ b/vlib/v/table/atypes.v @@ -106,8 +106,9 @@ pub fn (t Type) set_flag(flag TypeFlag) Type { } // clear `flag` on `t` and return `t` +[inline] pub fn (t Type) clear_flag(flag TypeFlag) Type { - return (((((int(t) >> 24) & 0xff) & ~(1 << int(flag))) << 24) ) | (((int(t) >> 16) & 0xff) << 16) | (u16(t) & 0xffff) + return ((((int(t) >> 24) & 0xff) & ~(1 << int(flag))) << 24) | (((int(t) >> 16) & 0xff) << 16) | (u16(t) & 0xffff) } // clear all flags