diff options
| author | Max Horn | 2014-03-30 19:48:08 +0200 |
|---|---|---|
| committer | Max Horn | 2014-03-30 19:48:08 +0200 |
| commit | 8638b29b8933e1cee30c5bac8641278ba039a1f8 (patch) | |
| tree | 144244ffedb02a7ca849e0b9dcfdd1dc9bd0e8f1 /backends/platform/android/asset-archive.cpp | |
| parent | 4d02f67bd1dc3b7fc9eb8729f92a4d5d41a6831a (diff) | |
| download | scummvm-rg350-8638b29b8933e1cee30c5bac8641278ba039a1f8.tar.gz scummvm-rg350-8638b29b8933e1cee30c5bac8641278ba039a1f8.tar.bz2 scummvm-rg350-8638b29b8933e1cee30c5bac8641278ba039a1f8.zip | |
SCUMM: Avoid potential issues casting invalid values to enum
A compiler could in principle decide that a ResType enum can
never equal 0xFF or 0xFFFF, and thus incorrectly optimize
the ScummEngine::saveOrLoad code. So check the value
*before* casting it.
Diffstat (limited to 'backends/platform/android/asset-archive.cpp')
0 files changed, 0 insertions, 0 deletions
