mirror of
https://github.com/status-im/nim-stew.git
synced 2025-02-13 12:36:57 +00:00
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…
x
Reference in New Issue
Block a user