Skip to content

Commit 61e3421

Browse files
authored
Merge pull request #1 from ringabout/patch-2
fixes another mixing types
2 parents ac7afb2 + 2e5275b commit 61e3421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

constantine/platforms/bithacks.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func countTrailingZeroBits_vartime*[T: SomeUnsignedInt](n: T): T {.inline.} =
145145
else:
146146
T(ctz_impl_vartime(uint32(n)))
147147
else:
148-
ctz_c_compiler_vartime(n)
148+
T(ctz_c_compiler_vartime(n))
149149

150150
func isPowerOf2_vartime*(n: SomeUnsignedInt): bool {.inline.} =
151151
## Returns true if n is a power of 2

0 commit comments

Comments
 (0)