Commit c476c3fb authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Don't overflow by doing 1<<31 in engine_print_policy()

parent 7de9b5e3
......@@ -3418,7 +3418,7 @@ void engine_print_policy(struct engine *e) {
#else
printf("%s engine_policy: engine policies are [ ",
clocks_get_timesincestart());
for (int k = 1; k < 32; k++)
for (int k = 1; k < 31; k++)
if (e->policy & (1 << k)) printf(" %s ", engine_policy_names[k + 1]);
printf(" ]\n");
fflush(stdout);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment