1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

table: remove extra parens & inline fn

This commit is contained in:
joe-conigliaro 2020-06-05 00:28:34 +10:00
parent e2976b70dc
commit 1c43204224
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1

View File

@ -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