We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b74b6ec commit fefe3ffCopy full SHA for fefe3ff
src/net/i2p/crypto/eddsa/Utils.java
@@ -34,6 +34,6 @@ public static int negative(int b) {
34
* @return 0 or 1, the value of the i'th bit in h
35
*/
36
public static int bit(byte[] h, int i) {
37
- return (h[i/8] >> (i%8)) & 1;
+ return (h[i >> 3] >> (i & 7)) & 1;
38
}
39
0 commit comments