summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-09-04 08:43:10 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-09-04 08:43:10 +0000
commite28e2b2b16c23f8eb78ee3aab480ced7e270684c (patch)
treef49103050ea9173f7dcfdec1c3dfa49aaeff13cd /searchlib
parent30c09b669c54a49fd2a8072e8c343fc996e42fe7 (diff)
Remove redundant if checks.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/transactionlog/common.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/searchlib/src/vespa/searchlib/transactionlog/common.cpp b/searchlib/src/vespa/searchlib/transactionlog/common.cpp
index e72422d06ba..965f88d942f 100644
--- a/searchlib/src/vespa/searchlib/transactionlog/common.cpp
+++ b/searchlib/src/vespa/searchlib/transactionlog/common.cpp
@@ -15,9 +15,9 @@ namespace {
void throwRangeError(SerialNum prev, SerialNum next) __attribute__((noinline));
-void throwRangeError(SerialNum prev, SerialNum next) {
- if (prev < next) return;
- throw runtime_error(make_string("The new serialnum %zu is not higher than the old one %zu", next, prev));
+void
+throwRangeError(SerialNum prev, SerialNum next) {
+ throw runtime_error(make_string("The new serialnum %" PRIu64 " is not higher than the old one %" PRIu64 "", next, prev));
}
}