Skip to content

Commit

Permalink
Fixes mac build.
Browse files Browse the repository at this point in the history
  • Loading branch information
FiniteSingularity committed May 25, 2024
1 parent 53864b5 commit b3ec9c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/filters/digital-glitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ void digital_glitch_filter_video_tick(retro_effects_filter_data_t *data,
uint32_t h_size =
(uint32_t)floor(r * range) + min_h_band_size;
size_t end = i + h_size;
for (i; i < end; i++) {
for (; i < end; i++) {
if (i == filter->horiz_grid.capacity) {
break;
}
Expand All @@ -331,7 +331,7 @@ void digital_glitch_filter_video_tick(retro_effects_filter_data_t *data,
uint32_t v_size =
(uint32_t)floor(r * range) + min_v_band_size;
size_t end = i + v_size;
for (i; i < end; i++) {
for (; i < end; i++) {
if (i == filter->vert_grid.capacity) {
break;
}
Expand Down Expand Up @@ -378,7 +378,7 @@ void digital_glitch_filter_video_tick(retro_effects_filter_data_t *data,
float range = (float)(filter->max_rgb_drift_height - filter->min_rgb_drift_height + 1);
uint32_t v_size = (uint32_t)floor(r * range) + filter->min_rgb_drift_height;
size_t end = i + v_size;
for (i; i < end; i++) {
for (; i < end; i++) {
if (i == filter->rgb_drift_grid.capacity) {
break;
}
Expand Down

0 comments on commit b3ec9c0

Please sign in to comment.