More coverage tweaks.
authorEric S. Raymond <esr@thyrsus.com>
Thu, 15 Nov 2018 18:33:16 +0000 (13:33 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 15 Nov 2018 18:33:16 +0000 (13:33 -0500)
main.c
saveresume.c

diff --git a/main.c b/main.c
index e8625b2978c4529aa945b05a3d5de977a2d5f20b..0719e8ceea7ce2efb3b1f3073e437a8549b9bf0b 100644 (file)
--- 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)
 /*  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;
     const char* query = obituaries[game.numdie].query;
     const char* yes_response = obituaries[game.numdie].yes_response;
     ++game.numdie;
index f02132103389142810d593043073349b7369317f..6e73017e48a32ff2cb4ee5eb89c37279ab7a8fc6 100644 (file)
@@ -146,7 +146,7 @@ bool is_valid(struct game_t valgame)
 
     /* Check for RNG overflow. Truncate */
     if (valgame.lcg_x >= LCG_M) {
 
     /* 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 */
     }
 
     /* Check for RNG underflow. Transpose */