mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-30 10:31:47 +00:00
small bugfix for eval
This commit is contained in:
@@ -219,7 +219,7 @@ proc getNullValue(typ: PType, info: TLineInfo): PNode =
|
||||
var t = skipTypes(typ, abstractRange)
|
||||
result = emptyNode
|
||||
case t.kind
|
||||
of tyBool, tyChar, tyInt..tyInt64:
|
||||
of tyBool, tyEnum, tyChar, tyInt..tyInt64:
|
||||
result = newNodeIT(nkIntLit, info, t)
|
||||
of tyFloat..tyFloat128:
|
||||
result = newNodeIt(nkFloatLit, info, t)
|
||||
|
||||
Reference in New Issue
Block a user