another portable cryptonote-lite fix

This commit is contained in:
Javier Smooth
2015-07-27 06:36:18 -07:00
parent eecae8c6f8
commit 25990016d5
+1 -1
View File
@@ -595,7 +595,7 @@ void cn_slow_hash(const void *data, size_t length, char *hash, int light) {
b[i] = state.k[16 + i] ^ state.k[48 + i];
}
for (i = 0; i < ITER / 2; i++) {
for (i = 0; i < ITER / (light?2:1) / 2; i++) {
/* Dependency chain: address -> read value ------+
* written value <-+ hard function (AES or MUL) <+
* next address <-+