--- a/xbmc/FileSystem/IDirectory.cpp
+++ b/xbmc/FileSystem/IDirectory.cpp
@@ -64,7 +64,7 @@
   }
   
   strExtension += '|'; // ensures that we have a | at the end of it
-  if (m_strFileMask.Find(strExtension) != CStdString::npos)
+  if (m_strFileMask.Find(strExtension) != (size_t)CStdString::npos)
     return true;
   return false;
 }