Skip to content

Commit 2fb605d

Browse files
committedMar 28, 2020
Fix encoding on non-amd64 arches.
Must've slipped by while getting rid of a BCE hint, ages ago.
1 parent 78bb70f commit 2fb605d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎encoding.go

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func init() {
2828
}
2929

3030
func encode(src *ID) (dst [SizeEncoded]byte) {
31+
dst[15] = encoding[src[9]&0x1F]
3132
dst[14] = encoding[(src[9]>>5|src[8]<<3)&0x1F]
3233
dst[13] = encoding[src[8]>>2&0x1F]
3334
dst[12] = encoding[(src[8]>>7|src[7]<<1)&0x1F]

0 commit comments

Comments
 (0)
Please sign in to comment.