Fix some 64 bit casts.

git-svn-id: https://svn.eduke32.com/eduke32@1597 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
qbix79 2010-02-10 18:20:30 +00:00
parent 386a93c366
commit eb464d45f9
3 changed files with 4 additions and 4 deletions

View file

@ -889,7 +889,7 @@ void Net_SyncPlayer(ENetEvent * event)
// no slots empty from players quitting, so open a new one
if (i == -1)
i = playerswhenstarted++;
event->peer->data = (void *)i;
event->peer->data = (void *) ((intptr_t) i);
clearbufbyte(&g_player[i].playerquitflag,1,0x01010101);
g_player[i].movefifoend = 1;

View file

@ -1227,7 +1227,7 @@ static int32_t C_SkipComments(void)
initprintf("%s:%d: debug: EOF in comment!\n",g_szScriptFileName,g_lineNumber);
C_ReportError(-1);
initprintf("%s:%d: error: found `/*' with no `*/'.\n",g_szScriptFileName,g_lineNumber);
g_parsingActorPtr = (intptr_t *)(g_processingState = g_numBraces = 0);
g_parsingActorPtr = 0;g_processingState = g_numBraces = 0;
g_numCompilerErrors++;
break;
}

View file

@ -289,13 +289,13 @@ int32_t S_PlayMusic(const char *fn, const int32_t sel)
char *ofn = (char *)fn;
int32_t fp;
char * testfn, * extension;
int32_t alt = 0;
const char* alt = 0;
if (ud.config.MusicToggle == 0) return 0;
if (ud.config.MusicDevice < 0) return 0;
if (MapInfo[sel].alt_musicfn != NULL)
alt = (int32_t)(fn = MapInfo[sel].alt_musicfn);
alt = fn = MapInfo[sel].alt_musicfn;
testfn = (char *) Bmalloc(strlen(fn) + 5);