From 7e0289fbdf2cc1cc05a35d6b89703de17f9fd44e Mon Sep 17 00:00:00 2001 From: mratsim Date: Fri, 24 Aug 2018 13:34:29 +0200 Subject: [PATCH] Fix regression due to when bool restriction https://github.com/nim-lang/Nim/commit/361a2d830aca1959d3dbc15d13bea31f89fcd0e2 and https://github.com/nim-lang/Nim/issues/7375 --- stint/private/uint_mul.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stint/private/uint_mul.nim b/stint/private/uint_mul.nim index 0bd1329..4554c11 100644 --- a/stint/private/uint_mul.nim +++ b/stint/private/uint_mul.nim @@ -82,7 +82,7 @@ func extPrecAddMul(result: var UintImpl[uint64], u, v: uint64) = macro eqSym(x, y: untyped): untyped = let eq = $x == $y # Unfortunately eqIdent compares to string. - result = quote do: `eq` + result = newLit eq func extPrecAddMul[T](result: var UintImpl[UintImpl[T]], u, v: UintImpl[T]) func extPrecMul*[T](result: var UintImpl[UintImpl[T]], u, v: UintImpl[T])