Put some of important parameters into fixed width signed integers
[open-adventure.git] / cheat.c
diff --git a/cheat.c b/cheat.c
index 96ef4c30178fcfbe180b491eac29276bfc5ed1d2..b75fccf9c47951f217e7d4696357b97817ff8d21 100644 (file)
--- a/cheat.c
+++ b/cheat.c
@@ -38,7 +38,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':