Skip to content

Commit

Permalink
Fix xr_sweep bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Aba committed Oct 30, 2023
1 parent 806ea6c commit e4dee87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ extern EXT_C void load_y (unsigned char *p_done, unsigned char *pt_done_proc, c
} else {

// Other bundles: pad & save as tiled
int xr_sweep = (i_xh==p_bo->oh) ? PE_ROWS : i_xr + 1;
int xr_sweep = i_xh==p_bundle->oh-1 ? PE_ROWS : i_xr + 1;

for (int i_xr_dest = i_xr; i_xr_dest < xr_sweep; i_xr_dest++) {
write_x(out_val, ib, i_xp, i_xn, i_xl, i_xw, i_xcm, i_xr_dest, p_bo, xcm);
Expand Down

0 comments on commit e4dee87

Please sign in to comment.