summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/trek/computer.c2
-rw-r--r--games/trek/dumpgame.c2
-rw-r--r--games/trek/getpar.c2
-rw-r--r--games/trek/phaser.c2
-rw-r--r--games/trek/setup.c4
-rw-r--r--games/trek/shield.c2
6 files changed, 7 insertions, 7 deletions
diff --git a/games/trek/computer.c b/games/trek/computer.c
index 02a0e41..2081c0e 100644
--- a/games/trek/computer.c
+++ b/games/trek/computer.c
@@ -117,7 +117,7 @@ computer()
while (1)
{
r = getcodpar("\nRequest", Cputab);
- switch ((int)r->value)
+ switch ((long)r->value)
{
case 1: /* star chart */
diff --git a/games/trek/dumpgame.c b/games/trek/dumpgame.c
index e7a14fe..d386a9f 100644
--- a/games/trek/dumpgame.c
+++ b/games/trek/dumpgame.c
@@ -141,7 +141,7 @@ int fd1;
register int fd;
register struct dump *d;
register int i;
- int junk;
+ long junk;
fd = fd1;
diff --git a/games/trek/getpar.c b/games/trek/getpar.c
index 3df297f..731f3e1 100644
--- a/games/trek/getpar.c
+++ b/games/trek/getpar.c
@@ -103,7 +103,7 @@ char *s;
struct cvntab *r;
r = getcodpar(s, Yntab);
- return ((int) r->value);
+ return ((long) r->value);
}
diff --git a/games/trek/phaser.c b/games/trek/phaser.c
index a0dec22..f120204 100644
--- a/games/trek/phaser.c
+++ b/games/trek/phaser.c
@@ -138,7 +138,7 @@ phaser()
if (!manual)
{
ptr = getcodpar("Manual or automatic", Matab);
- manual = (int) ptr->value;
+ manual = (long) ptr->value;
}
if (!manual && damaged(COMPUTER))
{
diff --git a/games/trek/setup.c b/games/trek/setup.c
index 8ea327c..edc9ad2 100644
--- a/games/trek/setup.c
+++ b/games/trek/setup.c
@@ -85,7 +85,7 @@ setup()
while (1)
{
r = getcodpar("What length game", Lentab);
- Game.length = (int) r->value;
+ Game.length = (long) r->value;
if (Game.length == 0)
{
if (restartgame())
@@ -95,7 +95,7 @@ setup()
break;
}
r = getcodpar("What skill game", Skitab);
- Game.skill = (int) r->value;
+ Game.skill = (long) r->value;
Game.tourn = 0;
getstrpar("Enter a password", Game.passwd, 14, 0);
if (sequal(Game.passwd, "tournament"))
diff --git a/games/trek/shield.c b/games/trek/shield.c
index df7bb63..0e5c250 100644
--- a/games/trek/shield.c
+++ b/games/trek/shield.c
@@ -109,7 +109,7 @@ int f;
if (f <= 0 && !testnl())
{
r = getcodpar("Up or down", Udtab);
- i = (int) r->value;
+ i = (long) r->value;
}
else
{
OpenPOWER on IntegriCloud