widl [6/7]: Don't compare result of read() to unsigned type.
Dan Hipschman
dsh at linux.ucla.edu
Wed Sep 13 18:34:53 CDT 2006
This eliminates a warning about comparing signed and unsigned types. There's
good reason for this warning, because if read() returns -1 it will be
converted to an unsigned type and the test will fail as if no error had
occurred.
ChangeLog:
* Don't compare size_t to int.
---
tools/widl/typelib.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/widl/typelib.c b/tools/widl/typelib.c
index 1476e1a..f119770 100644
--- a/tools/widl/typelib.c
+++ b/tools/widl/typelib.c
@@ -255,7 +255,7 @@ void add_typelib_entry(type_t *t)
typelib->entry = entry;
}
-static void tlb_read(int fd, void *buf, size_t count)
+static void tlb_read(int fd, void *buf, int count)
{
if(read(fd, buf, count) < count)
error("error while reading importlib.\n");
More information about the wine-patches
mailing list