summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-07-01 12:54:42 (GMT)
committerBrad King <brad.king@kitware.com>2003-07-01 12:54:42 (GMT)
commit11de69901e1627e815e77427ad50bbbc85e60852 (patch)
tree2012bce4c8cc2316e98e4d29cf9c11b22a94a22f /Source
parent6c66cdd28d9bdfe06227d6bd3fac6a61f4498ca0 (diff)
downloadCMake-11de69901e1627e815e77427ad50bbbc85e60852.zip
CMake-11de69901e1627e815e77427ad50bbbc85e60852.tar.gz
CMake-11de69901e1627e815e77427ad50bbbc85e60852.tar.bz2
ERR: Added explicit cast from size_t to int. We know that the data will not be out of range.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/EncodeExecutable.c2
1 files changed, 1 insertions, 1 deletions
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 <stdio.h>\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);