diff options
author | Araq <rumpf_a@web.de> | 2019-08-09 16:38:10 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-08-09 16:38:10 +0200 |
commit | 0e4a8bfb289d707909069e72ca24efd2a074a5f1 (patch) | |
tree | 853d72108b5e6070a42460f23d4baef0ffafdb02 /compiler/suggest.nim | |
parent | da37177ac252599c731589bf27d1e384403a047a (diff) | |
download | Nim-0e4a8bfb289d707909069e72ca24efd2a074a5f1.tar.gz |
fixes 'unused module' feature for 32 bit builds of Nim for good [nobackport]
Diffstat (limited to 'compiler/suggest.nim')
-rw-r--r-- | compiler/suggest.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim index 38ebb85e0..dc01916d1 100644 --- a/compiler/suggest.nim +++ b/compiler/suggest.nim @@ -32,7 +32,7 @@ # included from sigmatch.nim -import algorithm, prefixmatches, lineinfos, parseutils, linter +import algorithm, sets, prefixmatches, lineinfos, parseutils, linter from wordrecg import wDeprecated, wError, wAddr, wYield, specialWords when defined(nimsuggest): @@ -536,7 +536,7 @@ proc markOwnerModuleAsUsed(c: PContext; s: PSym) = var i = 0 while i <= high(c.unusedImports): let candidate = c.unusedImports[i][0] - if candidate == module or c.exportIndirections.contains(idPairToInt(candidate.id, s.id)): + if candidate == module or c.exportIndirections.contains((candidate.id, s.id)): # mark it as used: c.unusedImports.del(i) else: |