fix some warnings and add some xpconnect flair, r=mrbkap
authorVladimir Vukicevic <vladimir@pobox.com>
Tue, 26 Jan 2010 18:14:15 -0800
changeset 37526 532a3147881e9a9b31cb522902a067129678d3f9
parent 37525 aa9d33fc949341e5e159817a023ddb80d9b556a3
child 37527 516b492af4adade8173993e50e9d4516f15ca9ff
push id11357
push uservladimir@mozilla.com
push dateWed, 27 Jan 2010 02:14:49 +0000
treeherdermozilla-central@532a3147881e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
milestone1.9.3a1pre
fix some warnings and add some xpconnect flair, r=mrbkap
js/src/xpconnect/src/nsXPConnect.cpp
--- a/js/src/xpconnect/src/nsXPConnect.cpp
+++ b/js/src/xpconnect/src/nsXPConnect.cpp
@@ -1069,17 +1069,20 @@ InitWebGLTypes(JSContext *aJSContext, JS
         "WebGLUnsignedByteArray",
         "WebGLShortArray",
         "WebGLUnsignedShortArray",
         "WebGLIntArray",
         "WebGLUnsignedIntArray",
         "WebGLFloatArray"
     };
 
-    for(int i = 0; i < NS_ARRAY_LENGTH(webglTypes); ++i) {
+    for(size_t i = 0;
+        i < NS_ARRAY_LENGTH(webglTypes);
+        ++i)
+    {
         if(!JS_GetProperty(aJSContext, aGlobalJSObj, js::TypedArray::slowClasses[webglTypes[i]].name, &v) ||
            !JS_DefineProperty(aJSContext, aGlobalJSObj, webglNames[i], v,
                               NULL, NULL, JSPROP_PERMANENT | JSPROP_ENUMERATE))
             return PR_FALSE;
     }
 
     return PR_TRUE;
 }