summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorJuan M Gómez <info@jmgomez.me>2023-10-16 14:36:39 +0100
committerGitHub <noreply@github.com>2023-10-16 15:36:39 +0200
commita9bc6779e1010572e1def98379cb3693e55b8a4f (patch)
tree5878cc18e6260fcb9e8060c92be63e5accc26810 /lib/pure
parent078495c79324d3d4e1b14aedc6b4a4d241b007c0 (diff)
downloadNim-a9bc6779e1010572e1def98379cb3693e55b8a4f.tar.gz
the compiler can be compiled with vcc (#22832)
Diffstat (limited to 'lib/pure')
-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 005c7fa8f..e442557ef 100644
--- a/lib/pure/bitops.nim
+++ b/lib/pure/bitops.nim
@@ -463,7 +463,7 @@ elif useVCC_builtins:
       importc: "_BitScanForward64", header: "<intrin.h>".}
 
   template vcc_scan_impl(fnc: untyped; v: untyped): int =
-    var index: culong
+    var index {.inject.}: culong = 0
     discard fnc(index.addr, v)
     index.int