Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/games/gomoku



Module Name:    src
Committed By:   rillig
Date:           Mon May 16 19:55:58 UTC 2022

Modified Files:
        src/games/gomoku: Makefile bdinit.c bdisp.c main.c makemove.c
            pickmove.c

Log Message:
gomoku: fix lint warnings

Most warnings were about implicit conversions from ptrdiff_t to int; add
explicit cast for them, as they are far from overflowing int.

The casts from one pointer type to 'struct combostr **' were indeed
suspicious.  In these cases, a single region of memory is allocated to
store two objects of different type, without declaring a struct type for
their combination.  The second object is an array of variable size.

No binary change.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/games/gomoku/Makefile
cvs rdiff -u -r1.11 -r1.12 src/games/gomoku/bdinit.c
cvs rdiff -u -r1.22 -r1.23 src/games/gomoku/bdisp.c
cvs rdiff -u -r1.31 -r1.32 src/games/gomoku/main.c
cvs rdiff -u -r1.13 -r1.14 src/games/gomoku/makemove.c
cvs rdiff -u -r1.28 -r1.29 src/games/gomoku/pickmove.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index