🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.chess
Article #121

Bug (?) in Gnuchess 4.0 pl58

#121
From: Chua Kong Sian (Mr)
Date: Thu, 08 Oct 1992 03:51
17 lines
975 bytes
I'm in the process of trying to get compile Gnuchess 4.0pl58 on my 386
PC using the Microsoft 7.0 compiler.  In compiling the file genmove.c, 4
warnings about *truncation of const value* arose.  These occurred in
lines 192, 193, 232 and 233.  Here is an example of one of these lines
(line 192 to be precise).

history[SwagHt | i] += 5000;

Unfortunately, history is declared as an unsigned char array, which will
not take in a value of 5000.  

What gives, O development team?  

I'm going to change history to integer and try again.  Maybe this is
more correct.

#include <std.disclaimer>
Technical Details
Message-ID: <1992Oct8.035137.15869@nuscc.nus.sg>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!nuscc!ccecks

Show Full Headers
Complete Article Headers
Newsgroups: gnu.chess
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!nuscc!ccecks
From: ccecks@nuscc.nus.sg (Chua Kong Sian (Mr))
Subject: Bug (?) in Gnuchess 4.0 pl58
Message-ID: <1992Oct8.035137.15869@nuscc.nus.sg>
Organization: National University of Singapore
Date: Thu, 8 Oct 1992 03:51:37 GMT
Lines: 17