projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d94764b
)
ldrdf: cast output of sizeof() before passing to printf(), to avoid warning.
author
H. Peter Anvin
<hpa@zytor.com>
Mon, 20 Aug 2007 20:02:17 +0000
(20:02 +0000)
committer
H. Peter Anvin
<hpa@zytor.com>
Mon, 20 Aug 2007 20:02:17 +0000
(20:02 +0000)
The C99 way of doing this would be to use %zu, but that requires intrinsic
C library support.
rdoff/ldrdf.c
patch
|
blob
|
history
diff --git
a/rdoff/ldrdf.c
b/rdoff/ldrdf.c
index 2ea1af8ff89da8b139e1961049b12e51c41854e0..e28f28428e5bb7fea248cd881f0cb55ce4bf3959 100644
(file)
--- 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);