gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r9698: Oops, fix serialization of ob


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9698: Oops, fix serialization of object/reference
Date: Mon, 08 Sep 2008 22:16:45 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9698
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2008-09-08 22:16:45 +0200
message:
  Oops, fix serialization of object/reference
modified:
  libcore/as_value.cpp
=== modified file 'libcore/as_value.cpp'
--- a/libcore/as_value.cpp      2008-09-08 18:52:22 +0000
+++ b/libcore/as_value.cpp      2008-09-08 20:16:45 +0000
@@ -2232,7 +2232,7 @@
             OffsetTable::iterator it = offsetTable.find(obj);
             if ( it == offsetTable.end() )
             {
-                log_debug("serializing object (or function) as reference to 
%d", idx);
+                log_debug("serializing object (or function) with index %d", 
idx);
                 offsetTable[obj] = idx;
                 buf.appendByte(amf::Element::OBJECT_AMF0);
                 PropsBufSerializer props(buf, vm, offsetTable);
@@ -2245,8 +2245,7 @@
             }
             else // object already seen
             {
-                log_debug("serializing object (or function) with index %d", 
idx);
-                offsetTable[obj] = idx;
+                log_debug("serializing object (or function) as reference to 
%d", idx);
                 buf.appendByte(amf::Element::REFERENCE_AMF0);
                 buf.appendNetworkShort(it->second);
             }


reply via email to

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