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

js compile fixes

This commit is contained in:
Eliot Horowitz 2011-05-27 01:12:00 -04:00
parent dbbb069e06
commit c2a6654951

View File

@ -910,7 +910,7 @@ namespace mongo {
char * data = new char[len]; char * data = new char[len];
char *p = data; char *p = data;
const char *src = s.c_str(); const char *src = s.c_str();
for( int i = 0; i+1 < s.size(); i += 2 ) { for( size_t i = 0; i+1 < s.size(); i += 2 ) {
*p++ = fromHex(src + i); *p++ = fromHex(src + i);
} }
assert( JS_SetPrivate( cx , o , new BinDataHolder( data , len ) ) ); assert( JS_SetPrivate( cx , o , new BinDataHolder( data , len ) ) );