Avoid integer overflow when accessing luts with very large values

This commit is contained in:
heckflosse
2019-06-09 14:36:38 +02:00
committed by rom9
parent d2366e633c
commit df4513f595

View File

@@ -444,7 +444,7 @@ public:
}
idx = 0;
} else if (idx > maxs) {
} else if (index > maxsf) {
if (clip & LUT_CLIP_ABOVE) {
return data[upperBound];
}