summaryrefslogtreecommitdiff
path: root/rdoff/ldrdf.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-08-20 20:02:17 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-08-20 20:02:17 +0000
commit3b69717a120aeb4bf6759140884e40456248c1e6 (patch)
tree979c57af0cc637d5ca127cf0d0221ed2a24bebcc /rdoff/ldrdf.c
parentd94764bec02ad5f8351c8df41cd7c7c64abcc714 (diff)
downloadnasm-3b69717a120aeb4bf6759140884e40456248c1e6.tar.gz
nasm-3b69717a120aeb4bf6759140884e40456248c1e6.tar.bz2
nasm-3b69717a120aeb4bf6759140884e40456248c1e6.zip
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.
Diffstat (limited to 'rdoff/ldrdf.c')
-rw-r--r--rdoff/ldrdf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/rdoff/ldrdf.c b/rdoff/ldrdf.c
index 2ea1af8..e28f284 100644
--- a/rdoff/ldrdf.c
+++ b/rdoff/ldrdf.c
@@ -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);