Noticed recently that bitcount16() isn't 16-bit clean due to signed
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 22 Oct 2005 16:38:15 +0000 (16:38 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 22 Oct 2005 16:38:15 +0000 (16:38 +0000)
commit3199a01b45fe16e540800fb73f69b4188d6e70ff
tree7dbc77bdb3661c7f3c453e4310cfbcbbd6af630b
parent2705d3741495f136d9d092d873f9b1c803ba1d8f
Noticed recently that bitcount16() isn't 16-bit clean due to signed
shift right. It doesn't actually matter in the current code since
the input word only ever uses the bottom 9 bits, but if I ever
extended Mines to work in a triangular grid then all 16 bits might
be required. Fix this now, while I'm cleaning things up, so that it
won't bite me unexpectedly in future.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6415 cda61777-01e9-0310-a592-d414129be87e
mines.c