[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9884: initialize on operator=, not a
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9884: initialize on operator=, not append. |
Date: |
Mon, 22 Dec 2008 19:57:22 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9884
committer: address@hidden
branch nick: rtmp
timestamp: Mon 2008-12-22 19:57:22 -0700
message:
initialize on operator=, not append.
modified:
libamf/buffer.cpp
=== modified file 'libamf/buffer.cpp'
--- a/libamf/buffer.cpp 2008-12-22 18:45:11 +0000
+++ b/libamf/buffer.cpp 2008-12-23 02:57:22 +0000
@@ -277,7 +277,7 @@
// GNASH_REPORT_FUNCTION;
if ((_seekptr + 1) <= (_data.get() + _nbytes)) {
*_seekptr = byte;
- _seekptr += sizeof(char);
+ _seekptr += sizeof(boost::uint8_t);
}
return *this;
}
@@ -442,7 +442,7 @@
Buffer::operator=(amf::Element::amf0_type_e type)
{
boost::uint8_t nb = static_cast<boost::uint8_t>(type);
- return operator+=(nb);
+ return operator=(nb);
}
/// Copy a boolean into the buffer. This overwrites all data, and
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9884: initialize on operator=, not append.,
rob <=