Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: MSVC code gen bug?

Author: Scott Gasch

Date: 13:03:36 12/31/01

Go up one level in this thread


On December 31, 2001 at 15:57:28, Bruce Moreland wrote:

>
>How many elements are in "iRanks"?  If the answer is 8, there is your bug.
>
>In Pascal, arrays are usually 1..N.  In C, they are typically 0..N-1.  Your
>asserts indicate that you may be thinking in Pascal.
>
>I have more ideas once you indicate that there are more than 8 things in that
>array.
>

typedef struct _PAWN_HASH_ENTRY
{
INT64 i64Sig;
	short iWhiteValue;
	short iBlackValue;
	unsigned char iFiles[2][10];
	unsigned char iRanks[2][10];
    unsigned char iPawnsOnWhiteSquares[2];
    unsigned char iUnmovedPawns[2];
    unsigned char iRammedPawns[2];
    unsigned char iBackwardPawns[2];
    unsigned char cPassed[2][10];
    unsigned char iPasserInfo[2][10];
    unsigned char iPassedCount[2];
#ifdef PARANOID
    POSITION pos;
#endif
} PAWN_HASH_ENTRY;



This page took 0.01 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.