mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Fix several VC++ warnings
git-svn-id: svn://svn.cc65.org/cc65/trunk@39 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
386c3d412d
commit
048930265c
@ -99,7 +99,6 @@ static char* Find (const char* Path, const char* File)
|
||||
*/
|
||||
{
|
||||
const char* P;
|
||||
unsigned Count;
|
||||
int Max;
|
||||
char PathName [FILENAME_MAX];
|
||||
|
||||
@ -118,7 +117,7 @@ static char* Find (const char* Path, const char* File)
|
||||
/* Start the search */
|
||||
while (*P) {
|
||||
/* Copy the next path element into the buffer */
|
||||
Count = 0;
|
||||
int Count = 0;
|
||||
while (*P != '\0' && *P != ';' && Count < Max) {
|
||||
PathName [Count++] = *P++;
|
||||
}
|
||||
|
@ -169,7 +169,7 @@ void ObjClose (void)
|
||||
|
||||
|
||||
|
||||
void ObjWrite8 (unsigned char V)
|
||||
void ObjWrite8 (unsigned V)
|
||||
/* Write an 8 bit value to the file */
|
||||
{
|
||||
if (putc (V, F) == EOF) {
|
||||
|
@ -54,7 +54,7 @@ void ObjOpen (void);
|
||||
void ObjClose (void);
|
||||
/* Write an update header and close the object file. */
|
||||
|
||||
void ObjWrite8 (unsigned char V);
|
||||
void ObjWrite8 (unsigned V);
|
||||
/* Write an 8 bit value to the file */
|
||||
|
||||
void ObjWrite16 (unsigned V);
|
||||
|
@ -237,7 +237,7 @@ static void DoAlign (void)
|
||||
|
||||
/* Check if the alignment is a power of two */
|
||||
Bit = BitFind (Align);
|
||||
if (Align != (0x01UL << Bit)) {
|
||||
if (Align != (0x01L << Bit)) {
|
||||
Error (ERR_ALIGN);
|
||||
} else {
|
||||
SegAlign (Bit, (int) Val);
|
||||
@ -739,7 +739,7 @@ static void DoLocalChar (void)
|
||||
if (IVal != '@' && IVal != '?') {
|
||||
Error (ERR_ILLEGAL_LOCALSTART);
|
||||
} else {
|
||||
LocalStart = IVal;
|
||||
LocalStart = (char) IVal;
|
||||
}
|
||||
NextTok ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user