summaryrefslogtreecommitdiff
path: root/storage/connect/tabvir.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/connect/tabvir.cpp')
-rw-r--r--storage/connect/tabvir.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/storage/connect/tabvir.cpp b/storage/connect/tabvir.cpp
index c78a8f531f6..76d52e198e3 100644
--- a/storage/connect/tabvir.cpp
+++ b/storage/connect/tabvir.cpp
@@ -168,16 +168,17 @@ int TDBVIR::TestFilter(PFIL filp, bool nop)
} // endswitch op
if (!nop) switch (op) {
- case OP_LT: l1--;
- case OP_LE: limit = l1; break;
- default: ok = false;
- } // endswitch op
-
+ case OP_LT: l1--;
+ /* falls through */
+ case OP_LE: limit = l1; break;
+ default: ok = false;
+ } // endswitch op
else switch (op) {
- case OP_GE: l1--;
- case OP_GT: limit = l1; break;
- default: ok = false;
- } // endswitch op
+ case OP_GE: l1--;
+ /* falls through */
+ case OP_GT: limit = l1; break;
+ default: ok = false;
+ } // endswitch op
limit = MY_MIN(MY_MAX(0, limit), Size);