bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hash.c:101: pointers are not permitted as case values


From: Alexander Klimov
Subject: Re: hash.c:101: pointers are not permitted as case values
Date: Mon, 4 Jun 2001 19:44:26 +0300 (IDT)

On 4 Jun 2001, Marius Vollmer wrote:

> Alexander Klimov <address@hidden> writes:
>
> > hash.c: In function `scm_hasher':
> > hash.c:101: pointers are not permitted as case values
>
> What happens when you change the code like this:
>
>     case SCM_UNPACK(SCM_EOL):
>       d = 256;
>       break;
>
> If that helps, we will use that fix.
Yes, the following patch solves the problem

Index: hash.c
===================================================================
RCS file: /cvs/guile/guile-core/libguile/hash.c,v
retrieving revision 1.43
diff -r1.43 hash.c
101c101
<     case SCM_EOL:
---
>     case SCM_UNPACK(SCM_EOL):
105c105
<     case SCM_BOOL_T:
---
>     case SCM_UNPACK(SCM_BOOL_T):
108c108
<     case SCM_BOOL_F:
---
>     case SCM_UNPACK(SCM_BOOL_F):
111c111
<     case SCM_EOF_VAL:
---
>     case SCM_UNPACK(SCM_EOF_VAL):


-- 
Regards,
ASK




reply via email to

[Prev in Thread] Current Thread [Next in Thread]