From 3a8455fd8ffede3a58a4da5437d0135bdf833486 Mon Sep 17 00:00:00 2001 From: Varriount Date: Sat, 21 Feb 2015 02:45:06 -0500 Subject: [PATCH] Allow ranges with unsigned integer ordinals to be used as parameter types for procedures. --- compiler/types.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/types.nim b/compiler/types.nim index 0f156f7bdf..5c3be75532 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -1100,7 +1100,7 @@ proc typeAllowedAux(marker: var IntSet, typ: PType, kind: TSymKind, result = typeAllowedAux(marker, lastSon(t), kind, flags) of tyRange: if skipTypes(t.sons[0], abstractInst-{tyTypeDesc}).kind notin - {tyChar, tyEnum, tyInt..tyFloat128}: result = t + {tyChar, tyEnum, tyInt..tyFloat128, tyUInt8..tyUInt32}: result = t of tyOpenArray, tyVarargs: if kind != skParam: result = t else: result = typeAllowedAux(marker, t.sons[0], skVar, flags)