X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=object.c;h=367f78364b3800dad690d49e84ebea44f53f20b0;hp=3412740f7654dba19769c76731fbe49ab4ac4b35;hb=044e6a2a498a002c3a6b1c419600e7cf2a4f28cf;hpb=c74d8ef6f193cb2be876c920c5cb7f599dd5418a diff --git a/object.c b/object.c index 3412740..367f783 100644 --- a/object.c +++ b/object.c @@ -157,7 +157,7 @@ char * constr_symtab(register char * buf, SYM * sym, int globflag) else w |= AL_EXTERN; /* imported symbol */ *buf++ = w >> 8; - *buf++ = w; + *buf++ = (char)w; z = sym->svalue; @@ -187,7 +187,7 @@ char * constr_symtab(register char * buf, SYM * sym, int globflag) // int WriteObject(int fd) { -// LONG t; // Scratch long + LONG t; // Scratch long LONG tds; // TEXT & DATA segment size int i; // Temporary int CHUNK * cp; // Chunk (for gather) @@ -299,7 +299,7 @@ int WriteObject(int fd) if (t < ssize) t = ssize; - buf = malloc((t + HDRSIZE) + HDRSIZE); + buf = malloc(t + HDRSIZE) + HDRSIZE; /* * Build object file header