From 98911c7386e6ea186b417454e556c32bc6e1dd5c Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 12 Nov 2007 14:01:36 +0000 Subject: [PATCH] --- src/juce_core/io/files/juce_DirectoryIterator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/juce_core/io/files/juce_DirectoryIterator.cpp b/src/juce_core/io/files/juce_DirectoryIterator.cpp index e291728b86..88758314b3 100644 --- a/src/juce_core/io/files/juce_DirectoryIterator.cpp +++ b/src/juce_core/io/files/juce_DirectoryIterator.cpp @@ -54,7 +54,8 @@ DirectoryIterator::DirectoryIterator (const File& directory, subIterator (0) { // you have to specify the type of files you're looking for! - jassert (whatToLookFor > 0 && whatToLookFor <= 3); + jassert ((whatToLookFor_ & (File::findFiles | File::findDirectories)) != 0); + jassert (whatToLookFor_ > 0 && whatToLookFor_ <= 7); String path (directory.getFullPathName()); if (! path.endsWithChar (File::separator))