gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/avm2 r9632: IFLT opcode: Use as_value::new


From: Tom Stellard
Subject: [Gnash-commit] /srv/bzr/gnash/avm2 r9632: IFLT opcode: Use as_value::newLessThan()
Date: Sun, 19 Oct 2008 19:09:07 +0800
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9632
committer: Tom Stellard <address@hidden>
branch nick: gnash_dev
timestamp: Sun 2008-10-19 19:09:07 +0800
message:
  IFLT opcode: Use as_value::newLessThan()
modified:
  libcore/vm/Machine.cpp
=== modified file 'libcore/vm/Machine.cpp'
--- a/libcore/vm/Machine.cpp    2008-10-19 10:54:25 +0000
+++ b/libcore/vm/Machine.cpp    2008-10-19 11:09:07 +0000
@@ -583,9 +583,8 @@
                as_value b = pop_stack();
                as_value a = pop_stack();
                boost::int32_t bytes = mStream->read_S24();
-               bool truth;
-               ABSTRACT_COMPARE(truth, a, b, false);
-               if(truth){
+               bool jump = a.newLessThan(b).to_bool();
+               if(jump){
                        LOG_DEBUG_AVM("Jumping... %d bytes.",bytes);
                        mStream->seekBy(bytes);
                }


reply via email to

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