mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
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:
parent
de4b89bb3e
commit
577f247be4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user