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:
parent
e2976b70dc
commit
1c43204224
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user