Makefile fix for macOS 10.14
[open-adventure.git] / saveresume.c
index 8fe93091697023b60db2c3a422fad66e7620e961..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) {
-        valgame.lcg_x %= LCG_M;
+        valgame.lcg_x %= LCG_M; // LCOV_EXCL_LINE
     }
 
     /* Check for RNG underflow. Transpose */
@@ -186,7 +186,7 @@ bool is_valid(struct game_t valgame)
 
     /*  Validate that we didn't die too many times in save */
     if (valgame.numdie >= NDEATHS) {
-        return false;
+        return false;  // LCOV_EXCL_LINE
     }
 
     /* Recalculate tally, throw the towel if in disagreement */