Backout previous fix for bug 457777
authorMarco Bonardo <mbonardo@mozilla.com>
Sat, 06 Feb 2010 12:30:02 +0100
changeset 37943 b439b81118a6aa58d25d4da75f1b300acc98e496
parent 37942 2e9d8868efc6f44f40d29dcc129bec27792e08bc
child 37944 2f0b9d7d8c567425288e468617a102a2b218040e
push id11514
push usermak77@bonardo.net
push dateSat, 06 Feb 2010 11:31:17 +0000
treeherdermozilla-central@2f0b9d7d8c56 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs457777
milestone1.9.3a2pre
Backout previous fix for bug 457777
browser/components/distribution.js
--- a/browser/components/distribution.js
+++ b/browser/components/distribution.js
@@ -149,17 +149,17 @@ DistributionCustomizer.prototype = {
                                                   this._locale);
         } else {
           items[iid][iprop] = this._ini.getString(section, keys[i]);
         }
 
         if (iprop == "type" && items[iid]["type"] == "default")
           defaultItemId = iid;
 
-        if (maxItemId < parseInt(iid))
+        if (maxItemId < iid)
           maxItemId = iid;
       } else {
         dump("Key did not match: " + keys[i] + "\n");
       }
     }
 
     let prependIndex = 0;
     for (let iid = 0; iid <= maxItemId; iid++) {