SHA256
1
0
forked from pool/guile
guile/guile-64bit.patch
Dominique Leuenberger 81765c6962 Accepting request 580975 from home:scarabeus_iv:branches:devel:languages:misc
- Add patch from Fedora not to link to libgc in all consumer libs:
  * guile-2.0.14-gc_pkgconfig_private.patch
- Add _constraints file to ensure we can build properly
- Format with spec-cleaner
- Fix build with new glibc 2.27 bsc#1079837:
  * guile-disable-int-tests.patch
- Use %license macro to install license

OBS-URL: https://build.opensuse.org/request/show/580975
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/guile?expand=0&rev=98
2018-02-28 14:15:04 +00:00

36 lines
1.1 KiB
Diff

Index: libguile/hash.c
===================================================================
--- libguile/hash.c.orig 2016-07-21 14:25:17.522695394 +0200
+++ libguile/hash.c 2016-07-21 14:25:22.778646713 +0200
@@ -296,7 +296,7 @@
unsigned long
scm_ihashq (SCM obj, unsigned long n)
{
- return (SCM_UNPACK (obj) >> 1) % n;
+ return ((unsigned long) SCM_UNPACK (obj) >> 1) % n;
}
@@ -332,7 +332,7 @@
if (SCM_NUMP(obj))
return (unsigned long) scm_hasher(obj, n, 10);
else
- return SCM_UNPACK (obj) % n;
+ return (unsigned long) SCM_UNPACK (obj) % n;
}
Index: libguile/struct.c
===================================================================
--- libguile/struct.c.orig 2016-07-21 14:25:17.522695394 +0200
+++ libguile/struct.c 2016-07-21 14:25:22.778646713 +0200
@@ -918,7 +918,7 @@
{
/* The length of the hash table should be a relative prime it's not
necessary to shift down the address. */
- return SCM_UNPACK (obj) % n;
+ return (unsigned long) SCM_UNPACK (obj) % n;
}
/* Return the hash of struct OBJ, modulo N. Traverse OBJ's fields to