- Fixed copy pasta errors in autosegs.h and other problems for GCC.

SVN r1404 (trunk)
This commit is contained in:
Randy Heit 2009-02-05 04:18:08 +00:00
parent 7ee11638f2
commit 70aa9cb92a
4 changed files with 9 additions and 8 deletions

View file

@ -41,13 +41,13 @@
#define CREG_SECTION "__DATA,creg"
#define GREG_SECTION "__DATA,greg"
#define MREG_SECTION "__DATA,mreg"
#define MREG_SECTION "__DATA,yreg"
#define YREG_SECTION "__DATA,yreg"
#else
#define AREG_SECTION "areg"
#define CREG_SECTION "creg"
#define GREG_SECTION "greg"
#define MREG_SECTION "mreg"
#define GREG_SECTION "yreg"
#define YREG_SECTION "yreg"
#endif
#endif

View file

@ -214,7 +214,7 @@ CCMD (mapchecksum)
{
Printf("Usage: mapchecksum <map> ...\n");
}
for (unsigned int i = 1; i < argv.argc(); ++i)
for (int i = 1; i < argv.argc(); ++i)
{
map = P_OpenMapData(argv[i]);
if (map == NULL)
@ -225,7 +225,7 @@ CCMD (mapchecksum)
{
map->GetChecksum(cksum);
delete map;
for (int j = 0; j < sizeof(cksum); ++j)
for (size_t j = 0; j < sizeof(cksum); ++j)
{
Printf("%02X", cksum[j]);
}

View file

@ -101,7 +101,7 @@ void MD5Context::Update(FileReader *file, unsigned len)
while (len != 0)
{
t = MIN(len, sizeof(readbuf));
t = MIN<long>(len, sizeof(readbuf));
len -= t;
t = file->Read(readbuf, t);
Update(readbuf, t);
@ -249,8 +249,6 @@ MD5Transform(DWORD buf[4], const DWORD in[16])
#endif
#include "c_dispatch.h"
//==========================================================================
//
// CCMD md5sum
@ -259,6 +257,9 @@ MD5Transform(DWORD buf[4], const DWORD in[16])
//
//==========================================================================
#include "c_dispatch.h"
#include <errno.h>
CCMD (md5sum)
{
if (argv.argc() < 2)

View file

@ -149,7 +149,7 @@ void FTeam::ParseTeamInfo ()
if (Teams.Size () < 2)
I_FatalError ("ParseTeamInfo: At least two teams must be defined in TEAMINFO.");
else if (Teams.Size () > TEAM_MAXIMUM)
else if (Teams.Size () > (unsigned)TEAM_MAXIMUM)
I_FatalError ("ParseTeamInfo: Too many teams defined. (Maximum: %d)", TEAM_MAXIMUM);
}