X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=resample_effect_test.cpp;h=02d9d74d1102ace6a956331bac2280f8a368060f;hp=81fb8468c4efaaf997cbaeb0eb62051f7220be51;hb=34776d3ed2565ee834405e575bf3bfc7f7933e36;hpb=6f1efa8348a90a393187c12d70fd10d81bbd2c99 diff --git a/resample_effect_test.cpp b/resample_effect_test.cpp index 81fb846..02d9d74 100644 --- a/resample_effect_test.cpp +++ b/resample_effect_test.cpp @@ -407,7 +407,7 @@ TEST(ResampleEffectTest, Precision) { // Deliberately put the data of interest very close to the right, // where texture coordinates are farther from 0 and thus less precise. - float data[size] = {0}; + float data[size * 2] = {0}; data[size - offset] = 1.0f; float expected_data[size * 2] = {0}; for (int x = 0; x < size * 2; ++x) {