diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-28 22:02:23 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-28 22:04:00 -0700 |
commit | 577f247be4650f6c40e50b3376d1a7078364ec55 (patch) | |
tree | aa59e2baaf56ed83ca618e0ec7d064636f3baebf /rdoff | |
parent | de4b89bb3e785aa57c99c947954651cb2541d4dd (diff) | |
download | nasm-577f247be4650f6c40e50b3376d1a7078364ec55.tar.gz nasm-577f247be4650f6c40e50b3376d1a7078364ec55.tar.bz2 nasm-577f247be4650f6c40e50b3376d1a7078364ec55.zip |
Fix warning about cast to pointer in rdfload.c
Fix warning in rdfload.c about cast to pointer of different size when
compiling on 64 bits. Of course, rdfload is probably useless on 64
bits, but it's pretty useless in the first place.
Diffstat (limited to 'rdoff')
-rw-r--r-- | rdoff/rdfload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rdoff/rdfload.c b/rdoff/rdfload.c index 063724e..d1d69d5 100644 --- a/rdoff/rdfload.c +++ b/rdoff/rdfload.c @@ -104,9 +104,9 @@ rdfmodule *rdfload(const char *filename) rdfheaderrewind(&f->f); - f->textrel = (int32_t)f->t; - f->datarel = (int32_t)f->d; - f->bssrel = (int32_t)f->b; + f->textrel = (size_t)(uint32_t)f->t; + f->datarel = (size_t)(uint32_t)f->d; + f->bssrel = (size_t)(int32_t)f->b; return f; } |