diff options
author | Araq <rumpf_a@web.de> | 2015-01-11 03:37:45 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-01-11 03:37:45 +0100 |
commit | b5a8e34ae75f0fd56225664a19dcdb39ffff1e70 (patch) | |
tree | 14211b04f3efcb842e2d6d9a434fb52b20dec51b | |
parent | 9dfd8fea126edd1f962694c09b1b0fbb66c20602 (diff) | |
download | Nim-b5a8e34ae75f0fd56225664a19dcdb39ffff1e70.tar.gz |
fixes #1928
-rw-r--r-- | compiler/ccgtypes.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 9c26bebd8..12dd2a8de 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -336,7 +336,7 @@ proc getSimpleTypeDesc(m: BModule, typ: PType): PRope = of tyNil: result = typeNameOrLiteral(typ, "0") of tyInt..tyUInt64: result = typeNameOrLiteral(typ, NumericalTypeToStr[typ.kind]) - of tyDistinct, tyRange: result = getSimpleTypeDesc(m, typ.sons[0]) + of tyDistinct, tyRange, tyOrdinal: result = getSimpleTypeDesc(m, typ.sons[0]) else: result = nil proc getTypePre(m: BModule, typ: PType): PRope = |