Fix build on 64bit platforms
This commit is contained in:
parent
79d6375a15
commit
a973ae6646
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196848
11
net-p2p/hagelslag/files/patch-src-DB.cpp
Normal file
11
net-p2p/hagelslag/files/patch-src-DB.cpp
Normal file
@ -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;
|
||||
}
|
11
net/vls/files/patch-src-core-hashtable.cpp
Normal file
11
net/vls/files/patch-src-core-hashtable.cpp
Normal file
@ -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;
|
||||
}
|
||||
|
||||
|
11
www/swish++/files/patch-elements.c
Normal file
11
www/swish++/files/patch-elements.c
Normal file
@ -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 ) {
|
Loading…
Reference in New Issue
Block a user