From b5a8e34ae75f0fd56225664a19dcdb39ffff1e70 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 11 Jan 2015 03:37:45 +0100 Subject: [PATCH] fixes #1928 --- compiler/ccgtypes.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 =