don't cast size to a char!

This commit is contained in:
ehouse 2006-06-28 14:11:46 +00:00
parent de20e83bdb
commit 5fb3705535

View file

@ -506,7 +506,7 @@ static void
readFromFile( void ) readFromFile( void )
{ {
char wordBuf[MAX_WORD_LEN+1]; char wordBuf[MAX_WORD_LEN+1];
static bool s_eof = false;; static bool s_eof = false;
char* word; char* word;
int len; int len;
@ -1069,7 +1069,7 @@ parseARGV( int argc, char** argv, const char** inFileName )
} else if ( 0 == strcmp( arg, "-force4" ) ) { } else if ( 0 == strcmp( arg, "-force4" ) ) {
gForceFour = true; gForceFour = true;
} else if ( 0 == strcmp( arg, "-fsize" ) ) { } else if ( 0 == strcmp( arg, "-fsize" ) ) {
gFileSize = (char)atoi(argv[index++]); gFileSize = atoi(argv[index++]);
#ifdef DEBUG #ifdef DEBUG
} else if ( 0 == strcmp( arg, "-debug" ) ) { } else if ( 0 == strcmp( arg, "-debug" ) ) {
gDebug = true; gDebug = true;