aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/stream.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/stream.cpp b/common/stream.cpp
index 9bd09386d9..d401947040 100644
--- a/common/stream.cpp
+++ b/common/stream.cpp
@@ -85,6 +85,8 @@ bool MemoryReadStream::seek(int32 offs, int whence) {
offs = _size + offs;
// Fall through
case SEEK_SET:
+ // Fall through
+ default:
_ptr = _ptrOrig + offs;
_pos = offs;
break;
@@ -188,8 +190,6 @@ String SeekableReadStream::readLine() {
return line;
}
-
-
uint32 SubReadStream::read(void *dataPtr, uint32 dataSize) {
if (dataSize > _end - _pos) {
dataSize = _end - _pos;
@@ -221,6 +221,8 @@ bool SeekableSubReadStream::seek(int32 offset, int whence) {
offset = size() + offset;
// fallthrough
case SEEK_SET:
+ // Fall through
+ default:
_pos = _begin + offset;
break;
case SEEK_CUR: