You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At least in my compiler (gcc), 1 << bits assumes a 32-bit signed integer, so when bits == 31, hashes becomes a negative number.
The easiest fix is to replace the line with:
auto hashes = 1ULL << bits;
I tried this and it worked on my computer. But this is only a temporary fix because if the mining queue becomes long enough (I think over 231) then this fix will also break. Perhaps the mining queue is unlikely to get that long and this is a good enough fix. Or maybe you guys want to come up with a more robust solution.
The text was updated successfully, but these errors were encountered:
The problem is with this line:
steem/libraries/plugins/witness/witness.cpp
Line 388 in b3cb377
At least in my compiler (gcc), 1 << bits assumes a 32-bit signed integer, so when bits == 31, hashes becomes a negative number.
The easiest fix is to replace the line with:
auto hashes = 1ULL << bits;
I tried this and it worked on my computer. But this is only a temporary fix because if the mining queue becomes long enough (I think over 231) then this fix will also break. Perhaps the mining queue is unlikely to get that long and this is a good enough fix. Or maybe you guys want to come up with a more robust solution.
The text was updated successfully, but these errors were encountered: