From 8caa9771995b266e10b2e7c0de6cbfa698902e68 Mon Sep 17 00:00:00 2001 From: diegomrsantos Date: Tue, 25 Apr 2023 18:16:50 +0200 Subject: [PATCH] remove HoleEnumConv warning (#184) --- stew/objects.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stew/objects.nim b/stew/objects.nim index b75f8d1..0777249 100644 --- a/stew/objects.nim +++ b/stew/objects.nim @@ -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 =