aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-p2p/hagelslag/files/patch-src-DB.cpp11
-rw-r--r--net/vls/files/patch-src-core-hashtable.cpp11
-rw-r--r--www/swish++/files/patch-elements.c11
3 files changed, 33 insertions, 0 deletions
diff --git a/net-p2p/hagelslag/files/patch-src-DB.cpp b/net-p2p/hagelslag/files/patch-src-DB.cpp
new file mode 100644
index 000000000000..fe66661b9fe0
--- /dev/null
+++ b/net-p2p/hagelslag/files/patch-src-DB.cpp
@@ -0,0 +1,11 @@
+--- src/DB.cpp.orig 2007-07-31 20:15:48.000000000 +0200
++++ src/DB.cpp 2007-07-31 20:16:18.000000000 +0200
+@@ -521,7 +521,7 @@
+ int DB::containsElementAtIndex(int i)
+ {
+ if ( (i >= 0) && (i < DBSize) )
+- return (int)myDB[i];
++ return (long)myDB[i];
+
+ return 0;
+ }
diff --git a/net/vls/files/patch-src-core-hashtable.cpp b/net/vls/files/patch-src-core-hashtable.cpp
new file mode 100644
index 000000000000..8f6d703f8717
--- /dev/null
+++ b/net/vls/files/patch-src-core-hashtable.cpp
@@ -0,0 +1,11 @@
+--- src/core/hashtable.cpp.orig 2007-07-31 20:20:07.000000000 +0200
++++ src/core/hashtable.cpp 2007-07-31 20:21:02.000000000 +0200
+@@ -97,7 +97,7 @@
+
+ u32 C_HashMethod<handle>::Hash(handle hKey) const
+ {
+- return (u32)hKey % m_uiMaxHash;
++ return (uintptr_t)hKey % m_uiMaxHash;
+ }
+
+
diff --git a/www/swish++/files/patch-elements.c b/www/swish++/files/patch-elements.c
new file mode 100644
index 000000000000..ab3bd53c87e5
--- /dev/null
+++ b/www/swish++/files/patch-elements.c
@@ -0,0 +1,11 @@
+--- mod/html/elements.c.orig 2007-07-31 20:12:01.000000000 +0200
++++ mod/html/elements.c 2007-07-31 20:12:22.000000000 +0200
+@@ -295,7 +295,7 @@
+ // become overly pedantic about casting to enums.
+ //
+ element::end_tag_type const
+- v = (element::end_tag_type const)(int const)(p[1]);
++ v = (element::end_tag_type const)(intptr_t const)(p[1]);
+ element &e = insert( value_type( *p++, element( v ) ) ).first->second;
+
+ switch ( v ) {