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:
Sebastian Hengst 2019-03-27 13:30:23 +00:00
parent a1772064c8
commit 380873f20a

View File

@ -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;