Fix compilation error on older Nim versions

このコミットが含まれているのは:
Zed 2021-12-20 16:31:41 +01:00
コミット 92ace2bf70
1個のファイルの変更6行の追加1行の削除

ファイルの表示

@ -7,4 +7,9 @@
# disable annoying warnings
warning("GcUnsafe2", off)
warning("ObservableStores", off)
warning("HoleEnumConv", off)
const
nimVersion = (major: NimMajor, minor: NimMinor, patch: NimPatch)
when nimVersion >= (1, 6, 0):
warning("HoleEnumConv", off)