summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-05-27 01:12:00 -0400
committerEliot Horowitz <eliot@10gen.com>2011-05-27 01:12:00 -0400
commitc2a6654951e7476c74d42eddd73f05205d9524fa (patch)
tree90e3569a465829296d7635225344ffdd3d4ab5fc /scripting
parentdbbb069e06c1f8c424f202d3ff95b0ff8afb15f9 (diff)
downloadmongo-c2a6654951e7476c74d42eddd73f05205d9524fa.tar.gz
js compile fixes
Diffstat (limited to 'scripting')
-rw-r--r--scripting/engine_spidermonkey.cpp2
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 ) ) );