Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 93f049e

Browse files
committedFeb 1, 2024
Correction
1 parent 390a120 commit 93f049e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/src/lib.nr

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ pub fn verify_node_hash<N>(node: [u8; N], hash: [u8; KEY_LENGTH])
247247
/// * `b` - Byte
248248
pub fn byte_to_nibbles(b: u8) -> (u4, u4)
249249
{
250-
(b as u4, (b >> 4) as u4)
250+
((b >> 4) as u4, b as u4)
251251
}
252252

253253
/// Key-to-nibble converter. Returns an array (twice the length of the input array)

0 commit comments

Comments
 (0)
Please sign in to comment.