From 7ee635b2a2b0d4114ba67519f43c42ce5c57c11c Mon Sep 17 00:00:00 2001 From: dwight Date: Mon, 13 Dec 2010 20:09:00 -0500 Subject: [PATCH] fix warning convesion 64 bit to 32 bit int --- db/dur.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;