SHA256
1
0
forked from pool/guile
guile/guile-64bit.patch
Petr Gajdos 07febc843a - update to 2.0.7:
* Notable changes
  ** SRFI-105 curly infix expressions are supported
  ** Reader options may now be per-port
  ** Futures may now be nested
  ** `GUILE_LOAD_PATH' et al can now add directories to the end of 
     the path
  ** `load-in-vicinity' search for `.go' files in `%load-compiled-path'
  ** Extension search order fixed, and LD_LIBRARY_PATH preserved
  ** Optimize calls to `equal?' or `eqv?' with a constant argument
  * Manual updates
  ** SRFI-9 records now documented under "Compound Data Types"
  ** (ice-9 and-let-star) and (ice-9 curried-definitions) now documented
  * New interfaces
  ** New "functional record setters" as a GNU extension of SRFI-9
  ** web: New `http-get*', `response-body-port', and `text-content-type?'
     procedures
  ** `string-split' accepts character sets and predicates
  ** R6RS SRFI support
  ** `define-public' is no a longer curried definition by default
  etc. see NEWS

OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/guile?expand=0&rev=57
2012-12-03 13:29:25 +00:00

36 lines
1.0 KiB
Diff

Index: libguile/hash.c
===================================================================
--- libguile/hash.c.orig
+++ libguile/hash.c
@@ -273,7 +273,7 @@ scm_hasher(SCM obj, unsigned long n, siz
unsigned long
scm_ihashq (SCM obj, unsigned long n)
{
- return (SCM_UNPACK (obj) >> 1) % n;
+ return ((unsigned long) SCM_UNPACK (obj) >> 1) % n;
}
@@ -309,7 +309,7 @@ scm_ihashv (SCM obj, unsigned long n)
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
+++ libguile/struct.c
@@ -919,7 +919,7 @@ scm_struct_ihashq (SCM obj, unsigned lon
{
/* 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