aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/memstream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/memstream.h b/common/memstream.h
index 991268ce10..68cfdce97c 100644
--- a/common/memstream.h
+++ b/common/memstream.h
@@ -137,6 +137,8 @@ public:
offset = size() + offset;
// Fall through
case SEEK_SET:
+ // Fall through
+ default:
_ptr = _ptrOrig + offset;
_pos = offset;
break;
@@ -219,6 +221,8 @@ public:
offs = _size + offs;
// Fall through
case SEEK_SET:
+ // Fall through
+ default:
_ptr = _data + offs;
_pos = offs;
break;