Bug 891537. WebIDL now includes 2**53 and -2**53 as valid values for long long (and for unsigned long long, in the case of 2**53). r=bzbarsky

This commit is contained in:
Wesley Chalmers 2013-09-30 10:37:28 -04:00
parent f1ae9d4280
commit 8c99b75810

View File

@ -189,10 +189,10 @@ struct PrimitiveConversionTraits_Limits {
template<>
struct PrimitiveConversionTraits_Limits<int64_t> {
static inline int64_t min() {
return -(1LL << 53) + 1;
return -(1LL << 53);
}
static inline int64_t max() {
return (1LL << 53) - 1;
return (1LL << 53);
}
};
@ -202,7 +202,7 @@ struct PrimitiveConversionTraits_Limits<uint64_t> {
return 0;
}
static inline uint64_t max() {
return (1LL << 53) - 1;
return (1LL << 53);
}
};