Skip to content

Commit ccad75d

Browse files
authored
Fix bit shift pattern matching in bits.ex
Signed-off-by: Yuri S. <fudoshiki.ari@gmail.com>
1 parent 0bc121a commit ccad75d

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)