Re: [PATCH] Hash bug [APPLIED]

2002-01-10 Thread Dan Sugalski
At 05:57 PM 1/10/2002 +, Simon Glover wrote: > Well, actually two bugs. > > The first is an off-by-one error in key.c than can cause parrot > to segfault if hash % NUM_BUCKETS happens to be zero. > > The other is a bug in the PerlHash init() code that causes new PerlHash > PMCs to start w

[PATCH] Hash bug

2002-01-10 Thread Simon Glover
Well, actually two bugs. The first is an off-by-one error in key.c than can cause parrot to segfault if hash % NUM_BUCKETS happens to be zero. The other is a bug in the PerlHash init() code that causes new PerlHash PMCs to start with the wrong size. Both fixed below; also tests to preven