diff --git a/Userland/Libraries/LibGfx/ICC/TagTypes.h b/Userland/Libraries/LibGfx/ICC/TagTypes.h index 7fa00d4b2c..83acd786b4 100644 --- a/Userland/Libraries/LibGfx/ICC/TagTypes.h +++ b/Userland/Libraries/LibGfx/ICC/TagTypes.h @@ -37,13 +37,13 @@ float lerp_1d(ReadonlySpan values, float x) // `sample()` gets a vector where 0 <= i'th coordinate < size(i) and should return the value of the look-up table at that position. inline FloatVector3 lerp_nd(Function size, Function const&)> sample, Vector const& x) { - Vector left_index; - Vector factor; + unsigned left_index[x.size()]; + float factor[x.size()]; for (size_t i = 0; i < x.size(); ++i) { unsigned n = size(i) - 1; float ec = x[i] * n; - left_index.append(min(static_cast(ec), n - 1)); - factor.append(ec - left_index[i]); + left_index[i] = min(static_cast(ec), n - 1); + factor[i] = ec - left_index[i]; } FloatVector3 sample_output {};