Fix integer overflow caused by bad use of binary operator.
authorYann Dirson <ydirson@altern.org>
Thu, 17 Jan 2008 23:19:24 +0000 (00:19 +0100)
committerYann Dirson <ydirson@free.fr>
Sun, 29 Sep 2013 13:39:24 +0000 (15:39 +0200)
commit9167c0e40628c12ae7b0f0ff679f285d53d253ae
tree19d3696d9211f14c8d13edf1ab91d0e2e009d2a5
parent5d0aa931eb2fe22d99277b0fbf998b4fa18f4231
Fix integer overflow caused by bad use of binary operator.

Guess this may make the AI more accurate :)

Problem caught by gcc:

../../gnushogi/search.c: In function 'search':
../../gnushogi/search.c:887: warning: overflow in implicit constant conversion

A quick audit only revealed a place where another logical AND was
tested using a curious idiom, so let's make it consistent at the same
time.
gnushogi/eval.c
gnushogi/search.c