mirror of
https://github.com/cc65/cc65.git
synced 2024-12-30 20:29:25 +00:00
Allow for warning-free build of ca65 with MS VC on warning level 3.
This commit is contained in:
parent
29c522fc5a
commit
365668785c
@ -1031,7 +1031,7 @@ static ExprNode* Factor (void)
|
||||
break;
|
||||
|
||||
case TOK_TIME:
|
||||
N = GenLiteralExpr (time (0));
|
||||
N = GenLiteralExpr ((long) time (0));
|
||||
NextTok ();
|
||||
break;
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user