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.
This commit is contained in:
H. Peter Anvin 2007-10-28 22:02:23 -07:00
parent de4b89bb3e
commit 577f247be4

View File

@ -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;
}