2009-11-23 13:13:13 +01:00
|
|
|
Index: libguile/hash.c
|
|
|
|
===================================================================
|
|
|
|
--- libguile/hash.c.orig
|
2007-01-12 01:27:09 +01:00
|
|
|
+++ libguile/hash.c
|
2011-08-15 16:09:22 +02:00
|
|
|
@@ -270,7 +270,7 @@ scm_hasher(SCM obj, unsigned long n, siz
|
2009-11-23 13:13:13 +01:00
|
|
|
unsigned long
|
|
|
|
scm_ihashq (SCM obj, unsigned long n)
|
2007-01-12 01:27:09 +01:00
|
|
|
{
|
|
|
|
- return (SCM_UNPACK (obj) >> 1) % n;
|
|
|
|
+ return ((unsigned long) SCM_UNPACK (obj) >> 1) % n;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-08-15 16:09:22 +02:00
|
|
|
@@ -306,7 +306,7 @@ scm_ihashv (SCM obj, unsigned long n)
|
2007-01-12 01:27:09 +01:00
|
|
|
if (SCM_NUMP(obj))
|
2009-11-23 13:13:13 +01:00
|
|
|
return (unsigned long) scm_hasher(obj, n, 10);
|
2007-01-12 01:27:09 +01:00
|
|
|
else
|
|
|
|
- return SCM_UNPACK (obj) % n;
|
|
|
|
+ return (unsigned long) SCM_UNPACK (obj) % n;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-11-23 13:13:13 +01:00
|
|
|
Index: libguile/struct.c
|
|
|
|
===================================================================
|
|
|
|
--- libguile/struct.c.orig
|
2007-01-12 01:27:09 +01:00
|
|
|
+++ libguile/struct.c
|
2011-08-15 16:09:22 +02:00
|
|
|
@@ -942,7 +942,7 @@ scm_struct_ihashq (SCM obj, unsigned lon
|
2007-01-12 01:27:09 +01:00
|
|
|
{
|
|
|
|
/* 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;
|
|
|
|
}
|
|
|
|
|
2011-08-15 16:09:22 +02:00
|
|
|
SCM_DEFINE (scm_struct_vtable_name, "struct-vtable-name", 1, 0, 0,
|