mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-08 01:47:17 +02:00
SDL_hidapi_zuiki.c: silence bogus -Warray-bounds warnings from gcc-4.9
(cherry picked from commit f61a22e10f)
This commit is contained in:
@@ -62,8 +62,8 @@ static float median_filter_update(MedianFilter_t* mf, float input) {
|
||||
if (mf->count < FILTER_SIZE) mf->count++;
|
||||
float temp[FILTER_SIZE];
|
||||
SDL_memcpy(temp, mf->buffer, sizeof(temp));
|
||||
for (int i = 0; i < mf->count - 1; i++) {
|
||||
for (int j = i + 1; j < mf->count; j++) {
|
||||
for (uint8_t i = 0; i < mf->count - 1; i++) {
|
||||
for (uint8_t j = i + 1; j < mf->count; j++) {
|
||||
if (temp[i] > temp[j]) {
|
||||
float t = temp[i];
|
||||
temp[i] = temp[j];
|
||||
|
||||
Reference in New Issue
Block a user