Skip to content

Commit

Permalink
Fix: narrowing conversion from 'int' to 'BYTE'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrittervg committed Aug 18, 2017
1 parent e00a32f commit 82527b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fxc2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ int main(int argc, char* argv[])
FILE* f;
errno_t err = fopen_s(&f, outputFile, "w");

fprintf(f, "const BYTE %s[] =\n{\n", entryPoint);
fprintf(f, "const signed char %s[] =\n{\n", entryPoint);
for (i = 0; i < len; i++) {
fprintf(f, "%4i", outString[i]);
if (i != len - 1)
Expand All @@ -281,7 +281,7 @@ int main(int argc, char* argv[])
fprintf(f, "\n");
}

fprintf(f, "\n};");
fprintf(f, "\n};\n");
fclose(f);

if(verbose) {
Expand Down

0 comments on commit 82527b8

Please sign in to comment.