mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: disallow enum initalization (#17361)
This commit is contained in:
@ -142,7 +142,7 @@ fn (mut en EpollNotifier) close() ! {
|
||||
// event_mask_to_flag is a helper function that converts a bitmask
|
||||
// returned by epoll_wait to FdEventType
|
||||
fn event_mask_to_flag(mask u32) FdEventType {
|
||||
mut flags := FdEventType{}
|
||||
mut flags := FdEventType.read
|
||||
|
||||
if mask & notify.epoll_read != 0 {
|
||||
flags.set(.read)
|
||||
|
Reference in New Issue
Block a user