mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
ldrdf: cast output of sizeof() before passing to printf(), to avoid warning.
The C99 way of doing this would be to use %zu, but that requires intrinsic C library support.
This commit is contained in:
parent
d94764bec0
commit
3b69717a12
@ -720,8 +720,9 @@ void write_output(const char *filename)
|
||||
fseek(ff, 0, SEEK_END);
|
||||
if (ftell(ff) > sizeof(hr->g.data)) {
|
||||
fprintf(error_file,
|
||||
"warning: maximum generic record size is %d, rest of file ignored\n",
|
||||
sizeof(hr->g.data));
|
||||
"warning: maximum generic record size is %u, "
|
||||
"rest of file ignored\n",
|
||||
(unsigned int)sizeof(hr->g.data));
|
||||
}
|
||||
fclose(ff);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user