[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
hash with zero size
From: |
Kevin Ryde |
Subject: |
hash with zero size |
Date: |
Mon, 05 Jul 2004 09:48:14 +1000 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
Calling
(hash #t 0)
kills guile with a divide-by-zero, whereas I'd have hoped probably for
an out-of-range error throw.
* hash.c (scm_hashq, scm_hashv, scm_hash): Restrict to size>=1 rather
than just size>=0, since 0<=hash<size cannot be satisfied when
size==0, and such a size causes divide-by-zeros in scm_hasher.
This would be for the 1.6 branch too, it's the same there.
hash.c.zero.diff
Description: Text document
hash.test
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- hash with zero size,
Kevin Ryde <=