diff options
author | Brad King <brad.king@kitware.com> | 2003-07-01 12:54:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-07-01 12:54:42 (GMT) |
commit | 11de69901e1627e815e77427ad50bbbc85e60852 (patch) | |
tree | 2012bce4c8cc2316e98e4d29cf9c11b22a94a22f /Source | |
parent | 6c66cdd28d9bdfe06227d6bd3fac6a61f4498ca0 (diff) | |
download | CMake-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.c | 2 |
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); |