*/
{
const char* P;
- unsigned Count;
int Max;
char PathName [FILENAME_MAX];
/* 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++;
}
-void ObjWrite8 (unsigned char V)
+void ObjWrite8 (unsigned V)
/* Write an 8 bit value to the file */
{
if (putc (V, F) == EOF) {
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);
/* 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);
if (IVal != '@' && IVal != '?') {
Error (ERR_ILLEGAL_LOCALSTART);
} else {
- LocalStart = IVal;
+ LocalStart = (char) IVal;
}
NextTok ();
}