Skip to content

Commit

Permalink
fix(formats): use correct format specifiers for size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
jakub-cfx committed Jan 9, 2024
1 parent a654bcc commit 8ffe254
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/components/tool-formats/src/ConvertFormats.cpp
Expand Up @@ -96,7 +96,7 @@ static bool OutputFile(const T&& callback, int fileVersion, const std::wstring&
outputSize += s;
});

wprintf(L"written %s successfully - compressed size %d\n", boost::filesystem::path(fileName).filename().c_str(), outputSize);
wprintf(L"written %s successfully - compressed size %zu\n", boost::filesystem::path(fileName).filename().c_str(), outputSize);

fclose(f);

Expand Down
2 changes: 1 addition & 1 deletion code/components/tool-formats/src/FragLod.cpp
Expand Up @@ -93,7 +93,7 @@ static void RunFragment(const boost::filesystem::path& path)
outputSize += s;
}, &flags);

printf("written successfully - out size %d\n", outputSize);
printf("written successfully - out size %zu\n", outputSize);

fclose(f);

Expand Down
2 changes: 1 addition & 1 deletion code/components/tool-formats/src/GLTFImport.cpp
Expand Up @@ -152,7 +152,7 @@ static bool OutputFile(T&& callback, int fileVersion, const std::wstring& fileNa
outputSize += s;
});

wprintf(L"written %s successfully - compressed size %d\n", boost::filesystem::path(fileName).filename().c_str(), outputSize);
wprintf(L"written %s successfully - compressed size %zu\n", boost::filesystem::path(fileName).filename().c_str(), outputSize);

fclose(f);

Expand Down
4 changes: 2 additions & 2 deletions code/components/tool-vehrec/src/VehicleRecordingTool.cpp
Expand Up @@ -96,7 +96,7 @@ static void DoFile(const boost::filesystem::path& path)
outputSize += s;
});

printf("written successfully - compressed size %d\n", outputSize);
printf("written successfully - compressed size %zu\n", outputSize);

fclose(f);

Expand Down Expand Up @@ -140,4 +140,4 @@ static void Run(const boost::program_options::variables_map& map)
}
}

static FxToolCommand command("tool:vehrec", HandleArguments, Run);
static FxToolCommand command("tool:vehrec", HandleArguments, Run);
2 changes: 1 addition & 1 deletion code/tools/dbg/pe_debug/pdbgen.cpp
Expand Up @@ -188,7 +188,7 @@ void tryGenerateSamplePDB( PEFile& peFile, const char* exeFile, const char* symF
// Embed parsed symbols as publics.
if ( symbols.empty() == false )
{
printf( "embedding %d symbols into PDB\n", symbols.size() );
printf( "embedding %zu symbols into PDB\n", symbols.size() );

CV_PUBSYMFLAGS pubflags_func;
pubflags_func.grfFlags = 0;
Expand Down

1 comment on commit 8ffe254

@blattersturm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this not just be changed to fmt::printf?

Please sign in to comment.