mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
f1ae9d4280
commit
8c99b75810
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user