Change casts of function pointers from int to long. This makes the
compiler warnings go away, but the compiler is throwing away 32-bits as the long value is silently truncated to an int on alpha. But the program works, so that must not matter.
This commit is contained in:
parent
87514388e9
commit
7689e1e466
@ -117,7 +117,7 @@ computer()
|
||||
while (1)
|
||||
{
|
||||
r = getcodpar("\nRequest", Cputab);
|
||||
switch ((int)r->value)
|
||||
switch ((long)r->value)
|
||||
{
|
||||
|
||||
case 1: /* star chart */
|
||||
|
@ -141,7 +141,7 @@ int fd1;
|
||||
register int fd;
|
||||
register struct dump *d;
|
||||
register int i;
|
||||
int junk;
|
||||
long junk;
|
||||
|
||||
fd = fd1;
|
||||
|
||||
|
@ -103,7 +103,7 @@ char *s;
|
||||
struct cvntab *r;
|
||||
|
||||
r = getcodpar(s, Yntab);
|
||||
return ((int) r->value);
|
||||
return ((long) r->value);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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"))
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user