Skip to content

Commit e7d2a3f

Browse files
committed
Merge pull request #6 from str4d/ref10
Ref10
2 parents 38e559d + a07059a commit e7d2a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/i2p/crypto/eddsa/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static int negative(int b) {
4646
* @return 0 or 1, the value of the i'th bit in h
4747
*/
4848
public static int bit(byte[] h, int i) {
49-
return (h[i/8] >> (i%8)) & 1;
49+
return (h[i >> 3] >> (i & 7)) & 1;
5050
}
5151

5252
/**

0 commit comments

Comments
 (0)