diff --git a/src/juce_core/io/files/juce_File.cpp b/src/juce_core/io/files/juce_File.cpp index 3a3a67b574..c4476b3672 100644 --- a/src/juce_core/io/files/juce_File.cpp +++ b/src/juce_core/io/files/juce_File.cpp @@ -650,7 +650,7 @@ int File::findChildFiles (OwnedArray& results, const String& wildCardPattern) const throw() { // you have to specify the type of files you're looking for! - jassert (whatToLookFor > 0 && whatToLookFor <= 3); + jassert ((whatToLookFor & (findFiles | findDirectories)) != 0); int total = 0;