Fix build on 64bit platforms

This commit is contained in:
Tilman Keskinoz 2007-08-02 12:51:07 +00:00
parent 5ddce0f361
commit 6031db5ce7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196958
2 changed files with 22 additions and 0 deletions

View 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)
{

View 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);