comparison plugins/DWT.cpp @ 178:f96ea0e4b475

Fix compiler warnings with -Wall -Wextra
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 28 Sep 2015 12:33:17 +0100
parents dcf5800f0f00
children 4697db8b91f8
comparison
equal deleted inserted replaced
177:a83a81ed1303 178:f96ea0e4b475
92 DWT::initialise(size_t channels, size_t stepSize, size_t blockSize) 92 DWT::initialise(size_t channels, size_t stepSize, size_t blockSize)
93 { 93 {
94 if (channels < getMinChannelCount() || 94 if (channels < getMinChannelCount() ||
95 channels > getMaxChannelCount()) return false; 95 channels > getMaxChannelCount()) return false;
96 96
97 if ((1 << m_scales) > blockSize) { 97 if ((1U << m_scales) > blockSize) {
98 std::cerr << "DWT::initialise: ERROR: Block size must be at least 2^scales (specified block size " << blockSize << " < " << (1 << m_scales) << ")" << std::endl; 98 std::cerr << "DWT::initialise: ERROR: Block size must be at least 2^scales (specified block size " << blockSize << " < " << (1 << m_scales) << ")" << std::endl;
99 return false; 99 return false;
100 } 100 }
101 101
102 m_stepSize = stepSize; 102 m_stepSize = stepSize;