mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1092879 - Preferences.jsm MAX_INT does useless math r=gavin
This commit is contained in:
parent
4aa289b3f3
commit
fe37123459
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user