Avoid some warnings in rdoff/rdf2bin.c
commit7d4d2c3cc99f7f270b9be488c239b60af67b6504
authorBo Borgerson <gigabo@gmail.com>
Sat, 12 Apr 2008 15:47:57 +0000 (12 11:47 -0400)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 12 Apr 2008 18:12:14 +0000 (12 11:12 -0700)
tree4de67389da1fb53f30d79fd435600d9ae20a9d3d
parent72ec0e414453d9d036a932b60939467c81582e14
Avoid some warnings in rdoff/rdf2bin.c

I received some warnings when running make on the head revision of
nasm from git:

----
rdf2bin.c: In function 'main':
rdf2bin.c:122: warning: comparison between signed and unsigned
rdf2bin.c:123: warning: comparison between signed and unsigned
rdf2bin.c:124: warning: comparison between signed and unsigned
----

I think these warnings are innocuous and should be safely avoidable
with simple casts (please see attached patch).

* rdoff/rdf2bin.c
(main): cast to size_t for comparison with fwrite return value

Signed-off-by: Bo Borgerson <gigabo@gmail.com>
rdoff/rdf2bin.c