mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 08:53:51 +00:00
compiler warned about useless negative operation. i hope it's ok after change
svn-id: r19107
This commit is contained in:
parent
8dd91d9b16
commit
1af9aad8ef
@ -61,7 +61,7 @@ void ScriptHelper::c1_pushVar() {
|
||||
}
|
||||
|
||||
void ScriptHelper::c1_pushBPNeg() {
|
||||
_curScript->stack[--_curScript->sp] = _curScript->stack[(-(_parameter + 2)) + _curScript->bp];
|
||||
_curScript->stack[--_curScript->sp] = _curScript->stack[(-(int32)(_parameter + 2)) + _curScript->bp];
|
||||
}
|
||||
|
||||
void ScriptHelper::c1_pushBPAdd() {
|
||||
@ -96,7 +96,7 @@ void ScriptHelper::c1_popVar() {
|
||||
}
|
||||
|
||||
void ScriptHelper::c1_popBPNeg() {
|
||||
_curScript->stack[(-(_parameter + 2)) + _curScript->bp] = _curScript->stack[++_curScript->sp-1];
|
||||
_curScript->stack[(-(int32)(_parameter + 2)) + _curScript->bp] = _curScript->stack[++_curScript->sp-1];
|
||||
}
|
||||
|
||||
void ScriptHelper::c1_popBPAdd() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user