diff options
Diffstat (limited to 'meta/recipes-devtools/guile/files/opensuse/guile-64bit.patch')
-rw-r--r-- | meta/recipes-devtools/guile/files/opensuse/guile-64bit.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/guile/files/opensuse/guile-64bit.patch b/meta/recipes-devtools/guile/files/opensuse/guile-64bit.patch new file mode 100644 index 0000000000..be3191a039 --- /dev/null +++ b/meta/recipes-devtools/guile/files/opensuse/guile-64bit.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | |||
2 | Upstream-Status: Inappropriate [opensuse patch] | ||
3 | |||
4 | Index: guile-2.0.3/libguile/hash.c | ||
5 | =================================================================== | ||
6 | --- guile-2.0.3.orig/libguile/hash.c 2011-07-06 15:49:59.000000000 -0700 | ||
7 | +++ guile-2.0.3/libguile/hash.c 2012-01-13 21:49:43.332844884 -0800 | ||
8 | @@ -270,7 +270,7 @@ scm_hasher(SCM obj, unsigned long n, siz | ||
9 | unsigned long | ||
10 | scm_ihashq (SCM obj, unsigned long n) | ||
11 | { | ||
12 | - return (SCM_UNPACK (obj) >> 1) % n; | ||
13 | + return ((unsigned long) SCM_UNPACK (obj) >> 1) % n; | ||
14 | } | ||
15 | |||
16 | |||
17 | @@ -306,7 +306,7 @@ scm_ihashv (SCM obj, unsigned long n) | ||
18 | if (SCM_NUMP(obj)) | ||
19 | return (unsigned long) scm_hasher(obj, n, 10); | ||
20 | else | ||
21 | - return SCM_UNPACK (obj) % n; | ||
22 | + return (unsigned long) SCM_UNPACK (obj) % n; | ||
23 | } | ||
24 | |||
25 | |||
26 | Index: guile-2.0.3/libguile/struct.c | ||
27 | =================================================================== | ||
28 | --- guile-2.0.3.orig/libguile/struct.c 2011-07-06 15:50:00.000000000 -0700 | ||
29 | +++ guile-2.0.3/libguile/struct.c 2012-01-13 21:49:43.332844884 -0800 | ||
30 | @@ -942,7 +942,7 @@ scm_struct_ihashq (SCM obj, unsigned lon | ||
31 | { | ||
32 | /* The length of the hash table should be a relative prime it's not | ||
33 | necessary to shift down the address. */ | ||
34 | - return SCM_UNPACK (obj) % n; | ||
35 | + return (unsigned long) SCM_UNPACK (obj) % n; | ||
36 | } | ||
37 | |||
38 | SCM_DEFINE (scm_struct_vtable_name, "struct-vtable-name", 1, 0, 0, | ||