summaryrefslogtreecommitdiff
path: root/src/filters.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/filters.h')
-rw-r--r--src/filters.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filters.h b/src/filters.h
index eda50732..31c89b48 100644
--- a/src/filters.h
+++ b/src/filters.h
@@ -111,11 +111,11 @@ public:
}
virtual void flush();
+
virtual void operator()(xact_t& xact) {
- if (tail_count == 0 && head_count > 0 &&
- xacts.size() >= static_cast<unsigned int>(head_count))
- return;
- xacts.push_back(&xact);
+ if (! (tail_count == 0 && head_count > 0 &&
+ static_cast<int>(xacts.size()) >= head_count))
+ xacts.push_back(&xact);
}
};