diff options
Diffstat (limited to 'compiler/sigmatch.nim')
-rw-r--r-- | compiler/sigmatch.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index af0e9648f..915eca8c5 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -649,7 +649,7 @@ proc typeRangeRel(f, a: PType): TTypeRelation {.noinline.} = isNone if f.isOrdinalType: - checkRange(firstOrd(a), lastOrd(a), firstOrd(f), lastOrd(f)) + checkRange(firstOrd(nil, a), lastOrd(nil, a), firstOrd(nil, f), lastOrd(nil, f)) else: checkRange(firstFloat(a), lastFloat(a), firstFloat(f), lastFloat(f)) |