summary refs log tree commit diff stats
path: root/compiler/wordrecg.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/wordrecg.nim')
-rw-r--r--compiler/wordrecg.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/wordrecg.nim b/compiler/wordrecg.nim
index 4da19779b..ef59fc979 100644
--- a/compiler/wordrecg.nim
+++ b/compiler/wordrecg.nim
@@ -180,7 +180,7 @@ const
     ]
 
 proc findStr*(a: openArray[string], s: string): int =
-  for i in countup(low(a), high(a)):
+  for i in low(a) .. high(a):
     if cmpIgnoreStyle(a[i], s) == 0:
       return i
   result = - 1