summary refs log tree commit diff stats
path: root/lib/system/debugger.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-10-29 19:42:33 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-10-29 19:42:33 +0100
commitc0433b0b6cd42c279cd2c259eb45636670db1fc7 (patch)
treef64e0b6eeaf100c5131b43f084b77ba5406697c6 /lib/system/debugger.nim
parent29c075299d12111cf8925a14d544008fb416ec7e (diff)
downloadNim-c0433b0b6cd42c279cd2c259eb45636670db1fc7.tar.gz
make some system modules compile again
Diffstat (limited to 'lib/system/debugger.nim')
-rw-r--r--lib/system/debugger.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/debugger.nim b/lib/system/debugger.nim
index cbf977f19..d9075de16 100644
--- a/lib/system/debugger.nim
+++ b/lib/system/debugger.nim
@@ -127,7 +127,7 @@ proc fileMatches(c, bp: cstring): bool =
 
 proc canonFilename*(filename: cstring): cstring =
   ## returns 'nil' if the filename cannot be found.
-  for i in 0 ..< dbgFilenameLen:
+  for i in 0 .. dbgFilenameLen-1:
     result = dbgFilenames[i]
     if fileMatches(result, filename): return result
   result = nil