X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=cheat.c;h=b75fccf9c47951f217e7d4696357b97817ff8d21;hp=96ef4c30178fcfbe180b491eac29276bfc5ed1d2;hb=9e2cb3c19196a26af8e20803314f42b69dc0e014;hpb=609159ad6d62af90cdbf97cbb09fffabde87a026 diff --git a/cheat.c b/cheat.c index 96ef4c3..b75fccf 100644 --- 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':