diff options
author | James Brown | 2002-03-10 17:33:04 +0000 |
---|---|---|
committer | James Brown | 2002-03-10 17:33:04 +0000 |
commit | 87ac8ae487a32f3e484846771b308bd548bc4814 (patch) | |
tree | c78be5f6357f3e3d91cfd7ecab0f5b7626419fa5 /script.cpp | |
parent | 31dc24a037f9673441cf7a5295138b89c9d6d911 (diff) | |
download | scummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.tar.gz scummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.tar.bz2 scummvm-rg350-87ac8ae487a32f3e484846771b308bd548bc4814.zip |
Apply some patches by syke to prevent buffer overruns, etc.
svn-id: r3723
Diffstat (limited to 'script.cpp')
-rw-r--r-- | script.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script.cpp b/script.cpp index d50adc9566..9d5a8b2ef8 100644 --- a/script.cpp +++ b/script.cpp @@ -732,12 +732,12 @@ int Scumm::getVerbEntrypoint(int obj, int entry) { void Scumm::push(int a) { - assert(_scummStackPos >=0 && _scummStackPos <= ARRAYSIZE(_scummStack)); + assert(_scummStackPos >=0 && (unsigned int)_scummStackPos <= ARRAYSIZE(_scummStack)); _scummStack[_scummStackPos++] = a; } int Scumm::pop() { - assert(_scummStackPos >0 && _scummStackPos <= ARRAYSIZE(_scummStack)); + assert(_scummStackPos >0 && (unsigned int)_scummStackPos <= ARRAYSIZE(_scummStack)); return _scummStack[--_scummStackPos]; } |