diff options
author | Aaron <aaron@10gen.com> | 2009-01-16 16:51:06 -0500 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-01-16 16:51:06 -0500 |
commit | cd8f3155388cc7eadaf3c0a4b5faac8dfffa8810 (patch) | |
tree | 1c87545fb9d44bbc49182fb0ea7da91cf7d93392 /dbtests | |
parent | 4dd2a1765ffbcb1e092666c4a7ffd6f8cd3702ca (diff) | |
download | mongo-cd8f3155388cc7eadaf3c0a4b5faac8dfffa8810.tar.gz |
Just use a char
Diffstat (limited to 'dbtests')
-rw-r--r-- | dbtests/jsobjtests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbtests/jsobjtests.cpp b/dbtests/jsobjtests.cpp index 23316977c50..50669c936aa 100644 --- a/dbtests/jsobjtests.cpp +++ b/dbtests/jsobjtests.cpp @@ -299,7 +299,7 @@ namespace JsobjTests { "\"nine\": { \"$binary\": \"abc=\", \"$type\": \"02\" }," "\"ten\": Date( 44 ), \"eleven\": /foooooo/i }" ); for( int i = 4; i < o.objsize(); ++i ) - for( int j = 1; j; j <<= 1 ) + for( unsigned char j = 1; j; j <<= 1 ) if ( rand() > int( RAND_MAX * 0.95 ) ) { char *c = const_cast< char * >( o.objdata() ) + i; if ( *c & j ) |