From 7c03c882f55d7c03ce94943d0d8f622c6904a334 Mon Sep 17 00:00:00 2001 From: Fabian Keller Date: Tue, 31 Oct 2017 19:48:01 +0100 Subject: [PATCH] Remove more usages of unary lt (fixes #6634) (#6641) * fixes #6634 * remove more usages of unary < --- compiler/semdata.nim | 2 +- lib/pure/securehash.nim | 2 +- lib/system/debugger.nim | 4 ++-- lib/system/repr.nim | 2 +- lib/system/sysspawn.nim | 2 +- nimsuggest/sexp.nim | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/compiler/semdata.nim b/compiler/semdata.nim index 3e57d1104b..5057260a4b 100644 --- a/compiler/semdata.nim +++ b/compiler/semdata.nim @@ -339,7 +339,7 @@ proc makeNotType*(c: PContext, t1: PType): PType = proc nMinusOne*(n: PNode): PNode = result = newNode(nkCall, n.info, @[ - newSymNode(getSysMagic("<", mUnaryLt)), + newSymNode(getSysMagic("pred", mPred)), n]) # Remember to fix the procs below this one when you make changes! diff --git a/lib/pure/securehash.nim b/lib/pure/securehash.nim index c191466698..57c1f3631c 100644 --- a/lib/pure/securehash.nim +++ b/lib/pure/securehash.nim @@ -181,7 +181,7 @@ proc `$`*(self: SecureHash): string = result.add(toHex(int(v), 2)) proc parseSecureHash*(hash: string): SecureHash = - for i in 0..