Skip to content

Commit

Permalink
fixup! Use size_t instead of int for sizes and trip counts.
Browse files Browse the repository at this point in the history
  • Loading branch information
axch committed Nov 20, 2023
1 parent 111183d commit b3b7c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/work-stealing.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ Work* execute_pure_loop(
int grain_size = 1;
if (end_iter - start_iter <= grain_size) {
// Few enough iterations; just do them.
for (int i = start_iter; i < end_iter; i++) {
for (size_t i = start_iter; i < end_iter; i++) {
do_work(thread_id, body(thread_id, i, env));
}
return join_work(cont);
Expand Down

0 comments on commit b3b7c21

Please sign in to comment.