Author: Dieter Buerssner
Date: 12:45:11 06/21/02
Go up one level in this thread
On June 21, 2002 at 15:23:40, Robert Hyatt wrote: >why not replace that long long module with > >address = (int) (hash_signature) % table_size I suggested something similar. I am too lazy to check exactly, but it seems that the cast to (signed) int will introduce a bug. Preferably would be a cast to unsigned, or even better to size_t (In my suggestion I used unsigned long, which will work on compilers with 16bit int and an adress space > 16bit, but those are outdated. I still have one and use it now and then ...) BTW. adress might be a bit misleading, because adress IMHO seems to imply a pointer, while it actually is a index/offset/whatever you want to call it. Regards, Dieter
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.