Skip to content

Commit 9f5a2a0

Browse files
committed
sizeof can not be used there [fix]
1 parent cc94526 commit 9f5a2a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/file_ext_meta.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type
2121
Duo* {.size: sizeof(cint).} = enum
2222
Good = 1
2323
Bad = 2
24-
DuoSet* {.size: sizeof(cint).} = set[Duo]
24+
DuoSet* = set[Duo]
2525

2626
proc toNum*(flags: DuoSet): int = #cast[cint](flags) # NOTE This is much shorter, but does not work at compile-time :/
2727
var num = 0

0 commit comments

Comments
 (0)