summaryrefslogtreecommitdiff
path: root/src/base/circlebuf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/circlebuf.cc')
-rw-r--r--src/base/circlebuf.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/circlebuf.cc b/src/base/circlebuf.cc
index d42bb11c3..06d0075b2 100644
--- a/src/base/circlebuf.cc
+++ b/src/base/circlebuf.cc
@@ -208,7 +208,7 @@ CircleBuf::write(const char *b, int len)
_rollover = true;
}
- if (old_start > old_stop && old_start < _stop ||
- old_start < old_stop && _stop < old_stop)
+ if ((old_start > old_stop && old_start < _stop) ||
+ (old_start < old_stop && _stop < old_stop))
_start = _stop + 1;
}