From 11de69901e1627e815e77427ad50bbbc85e60852 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 1 Jul 2003 08:54:42 -0400 Subject: ERR: Added explicit cast from size_t to int. We know that the data will not be out of range. --- Source/kwsys/EncodeExecutable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/kwsys/EncodeExecutable.c b/Source/kwsys/EncodeExecutable.c index 9db0fb9..2994129 100644 --- a/Source/kwsys/EncodeExecutable.c +++ b/Source/kwsys/EncodeExecutable.c @@ -54,7 +54,7 @@ int main(int argc, char* argv[]) fprintf(ofp, "#include \n\n"); /* Split file up in 1024-byte chunks. */ - while((n = fread(buffer, 1, 1024, ifp)) > 0) + while((n = (int)fread(buffer, 1, 1024, ifp)) > 0) { fprintf(ofp, "static unsigned char kwsysEncodedArray%s_%d[%d] = {\n", argv[4], count++, n); -- cgit v0.12