Bug 1092879 - Preferences.jsm MAX_INT does useless math r=gavin

This commit is contained in:
Erik Vold 2014-11-04 17:19:37 -08:00
parent 4aa289b3f3
commit fe37123459

View File

@ -15,7 +15,7 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm");
// The range of valid values is narrower than the range of valid JS values
// because the native preferences code treats integers as NSPR PRInt32s,
// which are 32-bit signed integers on all platforms.
const MAX_INT = Math.pow(2, 31) - 1;
const MAX_INT = 0x7FFFFFFF; // Math.pow(2, 31) - 1
const MIN_INT = -MAX_INT;
this.Preferences =