0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Fix OID string rep

This commit is contained in:
Aaron 2009-04-01 10:38:39 -04:00
parent 7bd3a9060c
commit 5b9e58768e

View File

@ -129,7 +129,7 @@ namespace mongo {
if( u < 16 ) s << '0';
s << u;
}
const char * raw = (const char*)&b;
const unsigned char * raw = (const unsigned char*)&b;
for( int i = 0; i < 4; i++ ) {
unsigned u = raw[i];
if( u < 16 ) s << '0';