-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
If n has the maximum value of 255, the comparison idx <= n is always true, since idx is a uint8_t, so the loop will never terminate. One way to fix is to make idx an int and assign its value to a uint8_t inside the loop.
Fix should include a test that it works properly when the full 255 hash blocks are needed.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working