Try to get that last line of coverage.
[open-adventure.git] / cheat.c
diff --git a/cheat.c b/cheat.c
index 96ef4c30178fcfbe180b491eac29276bfc5ed1d2..008fb9c4def8978ec3e88e1a680d86a53c211bd9 100644 (file)
--- a/cheat.c
+++ b/cheat.c
@@ -3,6 +3,10 @@
  * not happen. It leverages chunks of advent, mostly initialize() and
  * savefile(), so we know we're always outputing save files that advent
  * can import.
+ *
+ * Copyright (c) 1977, 2005 by Will Crowther and Don Woods
+ * Copyright (c) 2017 by Eric S. Raymond
+ * SPDX-License-Identifier: BSD-2-clause
  */
 #include <getopt.h>
 #include <stdlib.h>
@@ -38,7 +42,7 @@ int main(int argc, char *argv[])
     while ((ch = getopt(argc, argv, opts)) != EOF) {
         switch (ch) {
         case 'd':
-            game.numdie = (long)atoi(optarg);
+            game.numdie = (turn_t)atoi(optarg);
             printf("cheat: game.numdie = %ld\n", game.numdie);
             break;
         case 'l':