diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-05-27 01:12:00 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-05-27 01:12:00 -0400 |
commit | c2a6654951e7476c74d42eddd73f05205d9524fa (patch) | |
tree | 90e3569a465829296d7635225344ffdd3d4ab5fc /scripting | |
parent | dbbb069e06c1f8c424f202d3ff95b0ff8afb15f9 (diff) | |
download | mongo-c2a6654951e7476c74d42eddd73f05205d9524fa.tar.gz |
js compile fixes
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/engine_spidermonkey.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/engine_spidermonkey.cpp b/scripting/engine_spidermonkey.cpp index d5e1bf263e8..395fdc6f22d 100644 --- a/scripting/engine_spidermonkey.cpp +++ b/scripting/engine_spidermonkey.cpp @@ -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 ) ) ); |