From: Chuck Crayne Date: Sat, 28 Apr 2007 22:18:04 +0000 (+0000) Subject: Eliminate shift count warnings when building on 32-bit systems X-Git-Tag: nasm-2.11.05~2095 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e61733e3801e2db3e8b0375060ce75773c8bc77;p=platform%2Fupstream%2Fnasm.git Eliminate shift count warnings when building on 32-bit systems Remove define for DEBUG --- diff --git a/output/outelf64.c b/output/outelf64.c index 883d900..6a2843a 100644 --- a/output/outelf64.c +++ b/output/outelf64.c @@ -17,8 +17,6 @@ #include "nasmlib.h" #include "outform.h" -#define DEBUG 0 - /* Definitions in lieu of elf.h */ #define SHT_PROGBITS 1 @@ -1107,8 +1105,8 @@ static struct SAA *elf_build_symtab(int32_t *len, int32_t *local) WRITELONG(p, 1); /* we know it's 1st thing in strtab */ WRITESHORT(p, 4); /* type FILE */ WRITESHORT(p, SHN_ABS); - WRITEDLONG(p, 0L); /* no value */ - WRITEDLONG(p, 0L); /* no size either */ + WRITEDLONG(p, (uint64_t) 0); /* no value */ + WRITEDLONG(p, (uint64_t) 0); /* no size either */ saa_wbytes(s, entry, 24L); *len += 24; (*local)++; @@ -1122,8 +1120,8 @@ static struct SAA *elf_build_symtab(int32_t *len, int32_t *local) WRITELONG(p, 0); /* no symbol name */ WRITESHORT(p, 3); /* local section-type thing */ WRITESHORT(p, (i == 1 ? SHN_ABS : i - 1)); /* the section id */ - WRITEDLONG(p, 0L); /* offset zero */ - WRITEDLONG(p, 0L); /* size zero */ + WRITEDLONG(p, (uint64_t) 0); /* offset zero */ + WRITEDLONG(p, (uint64_t) 0); /* size zero */ saa_wbytes(s, entry, 24L); *len += 24; (*local)++; @@ -1187,7 +1185,7 @@ static struct SAA *elf_build_reltab(int32_t *len, struct Reloc *r) p = entry; WRITEDLONG(p, r->address); WRITEDLONG(p, (sym << 32) + r->type); - WRITEDLONG(p, 0L); + WRITEDLONG(p, (uint64_t) 0); saa_wbytes(s, entry, 24L); *len += 24;