18 Jan
2012
18 Jan
'12
4:49 p.m.
On 01/18/2012 04:43 PM, Peter Ujfalusi wrote:
On 01/18/2012 04:35 PM, Clemens Ladisch wrote:
Peter Ujfalusi wrote:
We run the loop as long as the sample size is bigger than the requested msbits.
- while (sample_sizes[i] > bits && i < ARRAY_SIZE(sample_sizes)) {
This will overrun sample_sizes[] if bits < 8.
which is prevented by the: && i < ARRAY_SIZE(sample_sizes)
I take it back. True, we overrun. These need to be swapped.
--
Péter