mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
ERR: Added explicit cast from size_t to int. We know that the data will not be out of range.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user