Skip to content

Commit

Permalink
CachingReader: Fix debug assertion when hintFrameCount == 0
Browse files Browse the repository at this point in the history
This also rephrases the warning message a bit.

Fixes:

    Critical [Engine]: DEBUG ASSERT: "hintFrameCount > 0" in function void CachingReader::hintAndMaybeWake(const HintVector&) at src/engine/cachingreader/cachingreader.cpp:533
  • Loading branch information
Holzhaus committed Sep 8, 2020
1 parent d44661d commit 7d96c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine/cachingreader/cachingreader.cpp
Expand Up @@ -530,8 +530,8 @@ void CachingReader::hintAndMaybeWake(const HintVector& hintList) {
}
}

VERIFY_OR_DEBUG_ASSERT(hintFrameCount > 0) {
kLogger.warning() << "ERROR: Negative hint length. Ignoring.";
VERIFY_OR_DEBUG_ASSERT(hintFrameCount >= 0) {
kLogger.warning() << "CachingReader: Ignoring negative hint length.";
continue;
}

Expand Down

0 comments on commit 7d96c38

Please sign in to comment.