mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-18 18:50:23 +08:00
rdx: Add cast avoid warning from gcc
Avoid a warning from gcc about casting an integer of different size to a pointer.
This commit is contained in:
parent
a4835d466c
commit
9726b1e971
@ -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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user