fix misc warnings, more importantly when NDEBUG is defined, assert() is a

nop.
This commit is contained in:
Thomas Capricelli
2010-03-27 18:58:29 +01:00
parent af08770890
commit 0a5c2d8a54
4 changed files with 4 additions and 6 deletions

View File

@@ -320,7 +320,7 @@ class FFT
// if the vector is strided, then we need to copy it to a packed temporary
Matrix<src_type,1,Dynamic> tmp;
if ( resize_input ) {
size_t ncopy = min(src.size(),src.size() + resize_input);
size_t ncopy = std::min(src.size(),src.size() + resize_input);
tmp.setZero(src.size() + resize_input);
if ( realfft && HasFlag(HalfSpectrum) ) {
// pad at the Nyquist bin