summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2019-03-05 23:13:05 +0000
committerGitHub <noreply@github.com>2019-03-05 23:13:05 +0000
commit63c847dc50cbf292629d8d7f72f0570b9f109b0c (patch)
tree0d3237d4fdf821cd8b21ac874338dcadabd4d51a
parent551d6d00df3bc4f88249d9caf1d20f53bc2a3af5 (diff)
parent7e52c798db1f2754a002ea34a4d38c86a4234120 (diff)
downloadNim-63c847dc50cbf292629d8d7f72f0570b9f109b0c.tar.gz
Merge pull request #10787 from silent-observer/patch-1
Remove var
-rw-r--r--lib/pure/bitops.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/bitops.nim b/lib/pure/bitops.nim
index 0eee3cd70..8cc5a9fed 100644
--- a/lib/pure/bitops.nim
+++ b/lib/pure/bitops.nim
@@ -97,7 +97,7 @@ when defined(nimHasalignOf):
     for bit in bits:
       result.add newCall("flipBit", v, bit)
 
-  proc testBit*[T: SomeInteger](v: var T, bit: BitsRange[T]): bool {.inline.} =
+  proc testBit*[T: SomeInteger](v: T, bit: BitsRange[T]): bool {.inline.} =
     ## Returns true if the bit in ``v`` at positions ``bit`` is set to 1
     let mask = 1.T shl bit
     return (v and mask) == mask