summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2005-05-29 22:26:24 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2005-05-29 22:26:24 +0000
commit3f6678245f9f9bcb31c6b68fe93d7fcb144eec40 (patch)
tree9c90712cb656f6843605515cccac53433a9b10d7 /net-libs/libtorrent/files
parentStable on amd64. (diff)
downloadgentoo-2-3f6678245f9f9bcb31c6b68fe93d7fcb144eec40.tar.gz
gentoo-2-3f6678245f9f9bcb31c6b68fe93d7fcb144eec40.tar.bz2
gentoo-2-3f6678245f9f9bcb31c6b68fe93d7fcb144eec40.zip
Added patch to fix warnings (errors) about integer/pointer mismatch.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-libs/libtorrent/files')
-rw-r--r--net-libs/libtorrent/files/libtorrent-0.6.2-warns.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-libs/libtorrent/files/libtorrent-0.6.2-warns.patch b/net-libs/libtorrent/files/libtorrent-0.6.2-warns.patch
new file mode 100644
index 000000000000..a87ac23cff64
--- /dev/null
+++ b/net-libs/libtorrent/files/libtorrent-0.6.2-warns.patch
@@ -0,0 +1,24 @@
+diff -x '*~' -ur libtorrent-0.6.2/src/data/file.cc libtorrent-0.6.2-gcc4/src/data/file.cc
+--- libtorrent-0.6.2/src/data/file.cc 2005-04-21 20:39:39.000000000 +0200
++++ libtorrent-0.6.2-gcc4/src/data/file.cc 2005-05-30 00:08:45.358865976 +0200
+@@ -102,7 +102,7 @@
+
+ if (((prot & MemoryChunk::prot_read) && !is_readable()) ||
+ ((prot & MemoryChunk::prot_write) && !is_writable())) {
+- int buf = get_size();
++ off_t buf = get_size();
+
+ throw internal_error(std::string((char*)buf, 4));
+ // throw internal_error("File::get_chunk() permission denied");
+diff -x '*~' -ur libtorrent-0.6.2/src/data/memory_chunk.cc libtorrent-0.6.2-gcc4/src/data/memory_chunk.cc
+--- libtorrent-0.6.2/src/data/memory_chunk.cc 2005-04-14 21:45:04.000000000 +0200
++++ libtorrent-0.6.2-gcc4/src/data/memory_chunk.cc 2005-05-29 23:51:27.853590752 +0200
+@@ -53,7 +53,7 @@
+ if (page_align() >= m_pagesize)
+ throw internal_error("MemoryChunk::MemoryChunk(...) received an page alignment >= page size");
+
+- if ((uint32_t)ptr % m_pagesize)
++ if ((ptrdiff_t)ptr % m_pagesize)
+ throw internal_error("MemoryChunk::MemoryChunk(...) is not aligned to a page");
+ }
+