diff --git a/db/dur.cpp b/db/dur.cpp index d5cc5906cd9..c5dc8c679b8 100644 --- a/db/dur.cpp +++ b/db/dur.cpp @@ -292,7 +292,8 @@ namespace mongo { data += mmf->length(); - if (memcmp(p, w, mmf->length()) == 0) + assert( mmf->length() == (unsigned) mmf->length() ); + if (memcmp(p, w, (unsigned) mmf->length()) == 0) continue; // next file unsigned low = 0xffffffff;