diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-02 12:51:07 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-02 12:51:07 +0000 |
commit | 6031db5ce751cfbae4180d55172078eec406fa6c (patch) | |
tree | c4b361c99c40501de0e456b927ac661b2c6f6737 /lang | |
parent | Fix build on 64bit platforms (diff) |
Fix build on 64bit platforms
Notes
Notes:
svn path=/head/; revision=196958
Diffstat (limited to 'lang')
-rw-r--r-- | lang/osb-jscore/files/patch-collections.cpp | 11 | ||||
-rw-r--r-- | lang/osb-jscore/files/patch-protected_values.cpp | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/lang/osb-jscore/files/patch-collections.cpp b/lang/osb-jscore/files/patch-collections.cpp new file mode 100644 index 000000000000..766070f9d750 --- /dev/null +++ b/lang/osb-jscore/files/patch-collections.cpp @@ -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) + { diff --git a/lang/osb-jscore/files/patch-protected_values.cpp b/lang/osb-jscore/files/patch-protected_values.cpp new file mode 100644 index 000000000000..490763a8ac6f --- /dev/null +++ b/lang/osb-jscore/files/patch-protected_values.cpp @@ -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); |