mirror of
https://github.com/status-im/nim-stew.git
synced 2025-01-24 02:50:18 +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:
|
if value notin E:
|
||||||
return false
|
return false
|
||||||
|
|
||||||
res = E value
|
res = cast[E](value)
|
||||||
return true
|
return true
|
||||||
|
|
||||||
func isZeroMemory*[T](x: T): bool =
|
func isZeroMemory*[T](x: T): bool =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user