From 289ff1953538a639c882f45475356ee541bb1cc0 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 27 Mar 2019 13:30:23 +0000 Subject: [PATCH] Bug 1533777 - use a release assert in CheckedInt::value; r=froydnj Differential Revision: https://phabricator.services.mozilla.com/D22970 --HG-- extra : source : f9c865b93ecd4d184b50de9a5ca9da15928c27a8 extra : amend_source : 40e1cb24abdde9a49f113ed012d19d830e3a5237 --- mfbt/CheckedInt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mfbt/CheckedInt.h b/mfbt/CheckedInt.h index b64d64491609..945e83e2b1ce 100644 --- a/mfbt/CheckedInt.h +++ b/mfbt/CheckedInt.h @@ -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;