summaryrefslogtreecommitdiff
path: root/rdoff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-20 14:25:36 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-20 14:25:36 -0700
commit9726b1e971a7b04f88eea213f4534c8e8cae058b (patch)
tree5a4e2b64ca1457b8278b5496fa1fb36fb932e06f /rdoff
parenta4835d466c50237afcc30ff99bc980aeb5d17ce6 (diff)
downloadnasm-9726b1e971a7b04f88eea213f4534c8e8cae058b.tar.gz
nasm-9726b1e971a7b04f88eea213f4534c8e8cae058b.tar.bz2
nasm-9726b1e971a7b04f88eea213f4534c8e8cae058b.zip
rdx: Add cast avoid warning from gcc
Avoid a warning from gcc about casting an integer of different size to a pointer.
Diffstat (limited to 'rdoff')
-rw-r--r--rdoff/rdx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdoff/rdx.c b/rdoff/rdx.c
index 6b6986a..8e70b1a 100644
--- a/rdoff/rdx.c
+++ b/rdoff/rdx.c
@@ -51,7 +51,7 @@ int main(int argc, char **argv)
exit(255);
}
- code = (main_fn) s->offset;
+ code = (main_fn)(size_t) s->offset;
argv++, argc--; /* remove 'rdx' from command line */