mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
js compile fixes
This commit is contained in:
parent
dbbb069e06
commit
c2a6654951
@ -910,7 +910,7 @@ namespace mongo {
|
||||
char * data = new char[len];
|
||||
char *p = data;
|
||||
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);
|
||||
}
|
||||
assert( JS_SetPrivate( cx , o , new BinDataHolder( data , len ) ) );
|
||||
|
Loading…
Reference in New Issue
Block a user