Fix build on 64bit platforms
This commit is contained in:
parent
5ddce0f361
commit
6031db5ce7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196958
11
lang/osb-jscore/files/patch-collections.cpp
Normal file
11
lang/osb-jscore/files/patch-collections.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- kjs/collector.cpp.orig 2007-08-02 14:42:10.000000000 +0200
|
||||
+++ kjs/collector.cpp 2007-08-02 14:42:57.000000000 +0200
|
||||
@@ -246,7 +246,7 @@
|
||||
|
||||
|
||||
// cells are 8-byte aligned
|
||||
-#define IS_POINTER_ALIGNED(p) (((int)(p) & 7) == 0)
|
||||
+#define IS_POINTER_ALIGNED(p) (((intptr_t)(p) & 7) == 0)
|
||||
|
||||
void Collector::markStackObjectsConservatively(void *start, void *end)
|
||||
{
|
11
lang/osb-jscore/files/patch-protected_values.cpp
Normal file
11
lang/osb-jscore/files/patch-protected_values.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
--- kjs/protected_values.cpp.orig 2007-08-02 14:45:26.000000000 +0200
|
||||
+++ kjs/protected_values.cpp 2007-08-02 14:45:49.000000000 +0200
|
||||
@@ -192,7 +192,7 @@
|
||||
template <> static inline unsigned hash<4>(ValueImp *pointer)
|
||||
{
|
||||
int a = (int)PHI;
|
||||
- int b = (int)pointer;
|
||||
+ intptr_t b = (intptr_t)pointer;
|
||||
int c = 0;
|
||||
|
||||
a -= b; a -= c; a ^= (c>>13);
|
Loading…
Reference in New Issue
Block a user