Bug 1571292 - -Wbool-operation: fix a warning (! instead of ~) r=gerald
authorSylvestre Ledru <sledru@mozilla.com>
Sun, 04 Aug 2019 22:00:40 +0000
changeset 486123 9ed9c76181b005e65469e6cdb2f78a03ce712146
parent 486122 f05488465c0dc67d611b0751d917c2060570f6cf
child 486124 ff00fe45c3d229cb7e54e2141687f3e68d58ad14
push id36390
push usercbrindusan@mozilla.com
push dateMon, 05 Aug 2019 09:54:13 +0000
treeherdermozilla-central@d681969e4480 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgerald
bugs1571292
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1571292 - -Wbool-operation: fix a warning (! instead of ~) r=gerald Differential Revision: https://phabricator.services.mozilla.com/D40574
mozglue/baseprofiler/public/BlocksRingBuffer.h
--- a/mozglue/baseprofiler/public/BlocksRingBuffer.h
+++ b/mozglue/baseprofiler/public/BlocksRingBuffer.h
@@ -325,17 +325,17 @@ class BlocksRingBuffer {
       return mBlockIndex == BufferRangeEnd();
     }
 
     // Can be used as reference to come back to this entry with `GetEntryAt()`.
     BlockIndex CurrentBlockIndex() const { return mBlockIndex; }
 
     // Index past the end of this block, which is the start of the next block.
     BlockIndex NextBlockIndex() const {
-      MOZ_ASSERT(~IsAtEnd());
+      MOZ_ASSERT(!IsAtEnd());
       BufferReader reader = mRing->mBuffer.ReaderAt(Index(mBlockIndex));
       Length entrySize = reader.ReadULEB128<Length>();
       return BlockIndex(reader.CurrentIndex() + entrySize);
     }
 
     // Index of the first block in the whole buffer.
     BlockIndex BufferRangeStart() const { return mRing->mFirstReadIndex; }