Computer Chess Club Archives


Search

Terms

Messages

Subject: An advice to all programmers:

Author: Severi Salminen

Date: 09:53:14 12/06/01


Hi!

Don't ever, I mean never ever, disable "those stupid warnings you don't want to
see anymore because they mean nothing". Well, for some odd reason I had disabled
unary operator and type conversion warnings. Now I just removed the #pragma
directive and found a major bug! I was using a 32-bit integer as a temporary
variable to store a 64-bit bitboard - how smart of me!! Actually I'm surprised I
hadn't noticed it before as it should've had corrupted the board representation
badly every time there was pawn double move. Well, now my program plays at least
5 elos better ;)

Severi



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.