remove HoleEnumConv warning (#184)
This commit is contained in:
parent
9b985e8ea8
commit
8caa977199
|
@ -104,7 +104,7 @@ func checkedEnumAssign*[E: enum, I: SomeInteger](res: var E, value: I): bool =
|
|||
if value notin E:
|
||||
return false
|
||||
|
||||
res = E value
|
||||
res = cast[E](value)
|
||||
return true
|
||||
|
||||
func isZeroMemory*[T](x: T): bool =
|
||||
|
|
Loading…
Reference in New Issue