remove HoleEnumConv warning (#184)

This commit is contained in:
diegomrsantos 2023-04-25 18:16:50 +02:00 committed by GitHub
parent 9b985e8ea8
commit 8caa977199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 =