gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/avm2 r9503: opcode IFFALS: Always read the


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9503: opcode IFFALS: Always read the number of bytes to jump.
Date: Thu, 21 Aug 2008 21:07:13 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9503
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Thu 2008-08-21 21:07:13 +0800
message:
  opcode IFFALS: Always read the number of bytes to jump.
modified:
  libcore/vm/Machine.cpp
=== modified file 'libcore/vm/Machine.cpp'
--- a/libcore/vm/Machine.cpp    2008-08-21 05:07:42 +0000
+++ b/libcore/vm/Machine.cpp    2008-08-21 13:07:13 +0000
@@ -508,10 +508,10 @@
 /// Do: If a is 'false', move by jump in stream, as ABC_ACTION_JUMP does.
        case SWF::ABC_ACTION_IFFALSE:
        {
+               boost::int32_t bytes = mStream->read_S24();
                bool truth = pop_stack().to_bool();
                if(!truth){
                        LOG_DEBUG_AVM("Jumping...");
-                       boost::int32_t bytes = mStream->read_S24();
                        LOG_DEBUG_AVM("%d bytes.",bytes);
                        mStream->seekBy(bytes);
                }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]