From 61700861d36f16560f34a2c65664e34177969ab5 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 11 May 2016 15:59:51 +0200 Subject: [PATCH] fixes #4144 --- compiler/debuginfo.nim | 40 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/compiler/debuginfo.nim b/compiler/debuginfo.nim index f30de2893c..8589730b9b 100644 --- a/compiler/debuginfo.nim +++ b/compiler/debuginfo.nim @@ -28,18 +28,10 @@ type enums*: seq[EnumDesc] conflicts*: bool -{.experimental.} - -using - self: var DebugInfo - package, file: string - -{.this: self.} - proc sdbmHash(hash: FilenameHash, c: char): FilenameHash {.inline.} = return FilenameHash(c) + (hash shl 6) + (hash shl 16) - hash -proc sdbmHash(package, file): FilenameHash = +proc sdbmHash(package, file: string): FilenameHash = template `&=`(x, c) = x = sdbmHash(x, c) result = 0 for i in 0..