Patch level : 10.0
Files correlati : ca1.exe Ricompilazione Demo : [ ] Commento : Controllato stack underflow nelle moltiplicazioni git-svn-id: svn://10.65.10.50/trunk@19772 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
57815ae41e
commit
accb19a680
@ -906,9 +906,14 @@ void TAVM::execute(const TAVM_op& op)
|
|||||||
{
|
{
|
||||||
const TVariant& v1 = _stack.pop();
|
const TVariant& v1 = _stack.pop();
|
||||||
TVariant& v0 = (TVariant&)_stack.peek();
|
TVariant& v0 = (TVariant&)_stack.peek();
|
||||||
|
if (v0.is_real())
|
||||||
|
{
|
||||||
const real m = v0.as_real() * v1.as_real();
|
const real m = v0.as_real() * v1.as_real();
|
||||||
v0.set(m);
|
v0.set(m);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
log_error("Stack underflow");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case avm_negate:
|
case avm_negate:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user