From 24359310304ceee121489fd785fb31484cf36c0d Mon Sep 17 00:00:00 2001 From: Pierre Lamot Date: Mon, 14 Jan 2019 15:37:02 +0100 Subject: [PATCH 4/4] Revert "Fix: narrowing conversion from 'int' to 'BYTE'" This reverts commit 82527b81104e5e21390d3ddcd328700c67ce73d4. --- fxc2.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fxc2.cpp b/fxc2.cpp index 01a8d07..ac17328 100755 --- a/fxc2.cpp +++ b/fxc2.cpp @@ -310,7 +310,7 @@ int main(int argc, const char* argv[]) FILE* f; errno_t err = fopen_s(&f, outputFile, "w"); - fprintf(f, "const signed char %s[] =\n{\n", variableName); + fprintf(f, "const BYTE %s[] =\n{\n", variableName); for (int i = 0; i < len; i++) { fprintf(f, "%4i", outString[i]); if (i != len - 1) @@ -319,7 +319,7 @@ int main(int argc, const char* argv[]) fprintf(f, "\n"); } - fprintf(f, "\n};\n"); + fprintf(f, "\n};"); fclose(f); if(verbose) { -- 2.19.1