1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-23 09:29:34 +00:00

Allow for warning-free build of ca65 with MS VC on warning level 3.

This commit is contained in:
Oliver Schmidt 2013-04-07 22:17:24 +02:00
parent 29c522fc5a
commit 365668785c
3 changed files with 3 additions and 3 deletions

View File

@ -1031,7 +1031,7 @@ static ExprNode* Factor (void)
break;
case TOK_TIME:
N = GenLiteralExpr (time (0));
N = GenLiteralExpr ((long) time (0));
NextTok ();
break;

View File

@ -1267,7 +1267,7 @@ static void DoIncBin (void)
}
/* Add the file to the input file table */
AddFile (&Name, FT_BINARY, Size, StatBuf.st_mtime);
AddFile (&Name, FT_BINARY, Size, (unsigned long) StatBuf.st_mtime);
/* If a count was not given, calculate it now */
if (Count < 0) {

View File

@ -526,7 +526,7 @@ int NewInputFile (const char* Name)
/* Add the file to the input file table and remember the index */
FileIdx = AddFile (SB_InitFromString (&NameBuf, Name),
(FCount == 0)? FT_MAIN : FT_INCLUDE,
Buf.st_size, Buf.st_mtime);
Buf.st_size, (unsigned long) Buf.st_mtime);
/* Create a new input source variable and initialize it */
S = xmalloc (sizeof (*S));