0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

elim warnings

This commit is contained in:
Dwight 2010-05-11 16:36:26 -04:00
parent 6aa22d5172
commit 81482b22e1

View File

@ -209,7 +209,7 @@ namespace mongo {
if( strcmp(v[i]+20,v[j]+20) == 0 ) {
for( int x = 1; ; x++ ) {
if( j+x == i ) return j;
if( i+x>=v.size() ) return -1;
if( i+x>=(int) v.size() ) return -1;
if( strcmp(v[i+x]+20,v[j+x]+20) ) return -1;
}
return -1;
@ -238,7 +238,7 @@ namespace mongo {
bool first = true;
s << "<pre>\n";
vector<const char *> v = _rsLog.get();
for( int i = 0; i < v.size(); i++ ) {
for( int i = 0; i < (int)v.size(); i++ ) {
assert( strlen(v[i]) > 20 );
int r = repeats(v, i);
if( r < 0 ) {