From c2a6654951e7476c74d42eddd73f05205d9524fa Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Fri, 27 May 2011 01:12:00 -0400 Subject: [PATCH] js compile fixes --- scripting/engine_spidermonkey.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ) );