Commit 198d3b87 authored by Sarah Parker's avatar Sarah Parker
Browse files

Assert valid depth in test_clpf

This avoids the possiblility of a left shift by a negative number,
which causes static analysis errors in clpf_test.cc

Change-Id: I2bf96dab69e9c76f014705eaeb2b7512dd7599e7
parent 5894efb9
......@@ -106,6 +106,7 @@ void test_clpf(int w, int h, int depth, int iterations,
int bits, level, count, damp = 0, boundary = 0;
assert(size >= w + 16 && size >= h + 16);
assert(depth >= 8);
// Test every combination of:
// * Input with up to <depth> bits of noise
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment