More coverage tweaks.

This commit is contained in:
Eric S. Raymond 2018-11-15 13:33:16 -05:00
parent 42c66160a7
commit 3ca9613bcd
2 changed files with 2 additions and 2 deletions

2
main.c
View file

@ -465,7 +465,7 @@ static void croak(void)
/* Okay, he's dead. Let's get on with it. */
{
if (game.numdie < 0)
game.numdie = 0;
game.numdie = 0; // LCOV_EXCL_LINE
const char* query = obituaries[game.numdie].query;
const char* yes_response = obituaries[game.numdie].yes_response;
++game.numdie;

View file

@ -146,7 +146,7 @@ bool is_valid(struct game_t valgame)
/* Check for RNG overflow. Truncate */
if (valgame.lcg_x >= LCG_M) {
valgame.lcg_x %= LCG_M;
valgame.lcg_x %= LCG_M; // LCOV_EXCL_LINE
}
/* Check for RNG underflow. Transpose */