gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/rtmp r9715: access the data behind the poi


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9715: access the data behind the pointer _ offset differrently.
Date: Wed, 12 Nov 2008 10:11:20 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9715
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-11-12 10:11:20 -0700
message:
  access the data behind the pointer _ offset differrently.
modified:
  libnet/diskstream.cpp
=== modified file 'libnet/diskstream.cpp'
--- a/libnet/diskstream.cpp     2008-11-06 22:41:56 +0000
+++ b/libnet/diskstream.cpp     2008-11-12 17:11:20 +0000
@@ -184,7 +184,7 @@
     /// page, then just return the existing data pointer.
     if (_dataptr != 0) {
        // If the offset is less than what we already mmapped, we
-       boost::uint32_t diff = reinterpret_cast<boost::uint32_t>(_dataptr + 
_offset);
+       boost::uint32_t diff = *reinterpret_cast<boost::uint32_t *>(_dataptr + 
_offset);
        if (diff < _pagesize) {
            return _dataptr + _offset;
            // unmap the old data before allocating a new chunk


reply via email to

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