From: Eric S. Raymond Date: Thu, 15 Nov 2018 18:33:16 +0000 (-0500) Subject: More coverage tweaks. X-Git-Tag: 1.7~22 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=3ca9613bcd75130a24a1ac4af19d4842aac2cf9c;p=open-adventure.git More coverage tweaks. --- diff --git a/main.c b/main.c index e8625b2..0719e8c 100644 --- a/main.c +++ b/main.c @@ -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; diff --git a/saveresume.c b/saveresume.c index f021321..6e73017 100644 --- a/saveresume.c +++ b/saveresume.c @@ -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 */