From ca79b198313dcea900487139fb43c6c3c77095cf Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Sat, 28 Oct 2023 13:25:44 -0700 Subject: [PATCH] initial commits --- runes/encodebyte.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runes/encodebyte.go b/runes/encodebyte.go index 2fb2f5f..fcaeb77 100644 --- a/runes/encodebyte.go +++ b/runes/encodebyte.go @@ -7,8 +7,8 @@ import ( // EncodeByte encodes the value of a byte into hexadecimal. func EncodeByte(value byte, symbolFunc func(byte)rune) (mostSignificant rune, leastSignificant rune) { - mostSignificant = symbolFunc( (0xf0 & value) >> 4 ) - leastSignificant = symbolFunc( (0x0f & value) ) + mostSignificant = symbolFunc( (0x0f & (value >> 4)) ) + leastSignificant = symbolFunc( (0x0f & (value )) ) return }