From: cuz Date: Thu, 8 Jun 2000 21:02:46 +0000 (+0000) Subject: Fix several VC++ warnings X-Git-Tag: V2.12.0~3473 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=048930265c53b1a1f00dcdfa8e182d711be8b3bb;p=cc65 Fix several VC++ warnings git-svn-id: svn://svn.cc65.org/cc65/trunk@39 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/incpath.c b/src/ca65/incpath.c index ed1f79386..51554a830 100644 --- a/src/ca65/incpath.c +++ b/src/ca65/incpath.c @@ -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++; } diff --git a/src/ca65/objfile.c b/src/ca65/objfile.c index b3218feb3..b79ff0970 100644 --- a/src/ca65/objfile.c +++ b/src/ca65/objfile.c @@ -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) { diff --git a/src/ca65/objfile.h b/src/ca65/objfile.h index 27c19fd67..364cab97f 100644 --- a/src/ca65/objfile.h +++ b/src/ca65/objfile.h @@ -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); diff --git a/src/ca65/pseudo.c b/src/ca65/pseudo.c index 2edf19ec8..3190d457f 100644 --- a/src/ca65/pseudo.c +++ b/src/ca65/pseudo.c @@ -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 (); }