aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-09-30 11:22:24 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-09-30 11:22:24 -0700
commit3419a7f9ca7640a976e8a332c5f74d222b150c6c (patch)
treeddd6d80a2df4c65e28b390c86234c496c2817001 /toolsrc/src
parent4faf11f206791a3bddf437314efe0ad45d2e2b0c (diff)
downloadvcpkg-3419a7f9ca7640a976e8a332c5f74d222b150c6c.tar.gz
vcpkg-3419a7f9ca7640a976e8a332c5f74d222b150c6c.zip
Change error_count to size_t
Diffstat (limited to 'toolsrc/src')
-rw-r--r--toolsrc/src/post_build_lint.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/post_build_lint.cpp b/toolsrc/src/post_build_lint.cpp
index 8bd9838c6..29710bd14 100644
--- a/toolsrc/src/post_build_lint.cpp
+++ b/toolsrc/src/post_build_lint.cpp
@@ -309,7 +309,7 @@ namespace vcpkg
return lint_status::SUCCESS;
}
- static void operator +=(unsigned int& left, const lint_status& right)
+ static void operator +=(size_t& left, const lint_status& right)
{
left += static_cast<unsigned int>(right);
}
@@ -317,7 +317,7 @@ namespace vcpkg
void perform_all_checks(const package_spec& spec, const vcpkg_paths& paths)
{
System::println("-- Performing post-build validation");
- unsigned int error_count = 0;
+ size_t error_count = 0;
error_count += check_for_files_in_include_directory(spec, paths);
error_count += check_for_files_in_debug_include_directory(spec, paths);
error_count += check_for_files_in_debug_share_directory(spec, paths);
@@ -345,7 +345,7 @@ namespace vcpkg
if (error_count != 0)
{
const fs::path portfile = paths.ports / spec.name / "portfile.cmake";
- System::println(System::color::error, "Found %d error(s). Please correct the portfile:\n %s", error_count, portfile.string());
+ System::println(System::color::error, "Found %u error(s). Please correct the portfile:\n %s", error_count, portfile.string());
exit(EXIT_FAILURE);
}