1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Fix a subtle overflow issue

Found by stuwph on 6-men TB.
This commit is contained in:
Marco Costalba 2016-05-05 18:05:49 +02:00
parent e3cb2659f9
commit 16019f47c8

View file

@ -881,7 +881,7 @@ uint64_t set_factors(T& p, int num, int order[], File f)
i += d->norm[i];
int n = 64 - i;
int size = 1;
uint64_t size = 1;
for (int k = 0; i < num || k == order[0] || k == order[1]; ++k)
if (k == order[0]) {