mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1533777 - use a release assert in CheckedInt::value; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D22970 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
a1772064c8
commit
380873f20a
@ -532,7 +532,7 @@ class CheckedInt {
|
||||
|
||||
/** @returns the actual value */
|
||||
T value() const {
|
||||
MOZ_ASSERT(
|
||||
MOZ_RELEASE_ASSERT(
|
||||
mIsValid,
|
||||
"Invalid checked integer (division by zero or integer overflow)");
|
||||
return mValue;
|
||||
|
Loading…
Reference in New Issue
Block a user