File: fix-armel-compilation.patch

package info (click to toggle)
qpid-cpp 0.16-6%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 37,232 kB
  • sloc: cpp: 158,939; python: 8,947; sh: 6,701; ruby: 2,080; makefile: 1,838; cs: 1,774; ansic: 1,771; xml: 281; perl: 15; sed: 10
file content (17 lines) | stat: -rw-r--r-- 607 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- a/src/qpid/RefCountedBuffer.cpp
+++ b/src/qpid/RefCountedBuffer.cpp
@@ -32,12 +32,13 @@
 
 BufferRef RefCountedBuffer::create(size_t n) {
     void* store=::malloc (n + sizeof(RefCountedBuffer));
+
     if (NULL == store)
         throw std::bad_alloc();
     new(store) RefCountedBuffer;
     char* start = reinterpret_cast<char *>(store) + sizeof(RefCountedBuffer);
     return BufferRef(
-        boost::intrusive_ptr<RefCounted>(reinterpret_cast<RefCountedBuffer*>(store)),
+        boost::intrusive_ptr<RefCounted>(reinterpret_cast<RefCountedBuffer*>((void*)store)),
         start, start+n);
 }