Skip to content

Commit 37b6af2

Browse files
authored
Merge pull request #16 from Youimmi/master
Fix bit shift pattern matching in bits.ex
2 parents 0bc121a + ccad75d commit 37b6af2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/puid/bits.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ defmodule Puid.Bits do
166166

167167
# IO.puts("reject #{value} --> #{bit_shift}")
168168

169-
<<_used::size(bit_shift), rest::bits>> = bits
169+
<<_used::size(^bit_shift), rest::bits>> = bits
170170

171171
slice(
172172
count - 1,

0 commit comments

Comments
 (0)