diff --git a/stb_resample.h b/stb_resample.h index 9747d63..c95531d 100644 --- a/stb_resample.h +++ b/stb_resample.h @@ -197,7 +197,7 @@ typedef struct float stbr__filter_nearest(float x) { - if (fabs(x) < 0.5) + if (fabs(x) <= 0.5) return 1; else return 0;