summaryrefslogtreecommitdiff
path: root/rdoff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-28 22:02:23 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-28 22:04:00 -0700
commit577f247be4650f6c40e50b3376d1a7078364ec55 (patch)
treeaa59e2baaf56ed83ca618e0ec7d064636f3baebf /rdoff
parentde4b89bb3e785aa57c99c947954651cb2541d4dd (diff)
downloadnasm-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.c6
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;
}