mirror of
https://github.com/cc65/cc65.git
synced 2024-06-26 05:29:30 +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;
|
const char* P;
|
||||||
unsigned Count;
|
|
||||||
int Max;
|
int Max;
|
||||||
char PathName [FILENAME_MAX];
|
char PathName [FILENAME_MAX];
|
||||||
|
|
||||||
|
@ -118,7 +117,7 @@ static char* Find (const char* Path, const char* File)
|
||||||
/* Start the search */
|
/* Start the search */
|
||||||
while (*P) {
|
while (*P) {
|
||||||
/* Copy the next path element into the buffer */
|
/* Copy the next path element into the buffer */
|
||||||
Count = 0;
|
int Count = 0;
|
||||||
while (*P != '\0' && *P != ';' && Count < Max) {
|
while (*P != '\0' && *P != ';' && Count < Max) {
|
||||||
PathName [Count++] = *P++;
|
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 */
|
/* Write an 8 bit value to the file */
|
||||||
{
|
{
|
||||||
if (putc (V, F) == EOF) {
|
if (putc (V, F) == EOF) {
|
||||||
|
|
|
@ -54,7 +54,7 @@ void ObjOpen (void);
|
||||||
void ObjClose (void);
|
void ObjClose (void);
|
||||||
/* Write an update header and close the object file. */
|
/* 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 */
|
/* Write an 8 bit value to the file */
|
||||||
|
|
||||||
void ObjWrite16 (unsigned V);
|
void ObjWrite16 (unsigned V);
|
||||||
|
|
|
@ -237,7 +237,7 @@ static void DoAlign (void)
|
||||||
|
|
||||||
/* Check if the alignment is a power of two */
|
/* Check if the alignment is a power of two */
|
||||||
Bit = BitFind (Align);
|
Bit = BitFind (Align);
|
||||||
if (Align != (0x01UL << Bit)) {
|
if (Align != (0x01L << Bit)) {
|
||||||
Error (ERR_ALIGN);
|
Error (ERR_ALIGN);
|
||||||
} else {
|
} else {
|
||||||
SegAlign (Bit, (int) Val);
|
SegAlign (Bit, (int) Val);
|
||||||
|
@ -739,7 +739,7 @@ static void DoLocalChar (void)
|
||||||
if (IVal != '@' && IVal != '?') {
|
if (IVal != '@' && IVal != '?') {
|
||||||
Error (ERR_ILLEGAL_LOCALSTART);
|
Error (ERR_ILLEGAL_LOCALSTART);
|
||||||
} else {
|
} else {
|
||||||
LocalStart = IVal;
|
LocalStart = (char) IVal;
|
||||||
}
|
}
|
||||||
NextTok ();
|
NextTok ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user