Skip to content

Commit

Permalink
SAGA: Add "fallthrough" comments to switch. CID 1003742, 1003743
Browse files Browse the repository at this point in the history
I'm almost certain these are intentional fallthroughs. It makes
sense to handle the little-endian cases like the big-endian ones,
with the added FLAG_LITTLE_ENDIAN.
  • Loading branch information
Torbjörn Andersson committed Jun 8, 2013
1 parent 2f0e43b commit 3dfe255
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/saga/shorten.cpp
Expand Up @@ -196,11 +196,13 @@ byte *loadShortenFromStream(Common::ReadStream &stream, int &size, int &rate, by
break;
case kTypeS16LH:
flags |= Audio::FLAG_LITTLE_ENDIAN;
// fallthrough
case kTypeS16HL:
flags |= Audio::FLAG_16BITS;
break;
case kTypeU16LH:
flags |= Audio::FLAG_LITTLE_ENDIAN;
// fallthrough
case kTypeU16HL:
flags |= Audio::FLAG_16BITS;
flags |= Audio::FLAG_UNSIGNED;
Expand Down

0 comments on commit 3dfe255

Please sign in to comment.