aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-04 16:24:25 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-04 16:42:07 +0300
commit6ec9be89f8cc7bd5521dfe50bd313f9197f08db6 (patch)
tree25b7b4fb56130a5bc4f4612c09a29c24fae5b0fd
parentmove away from variable-size ints (diff)
downloadwinapi-common-6ec9be89f8cc7bd5521dfe50bd313f9197f08db6.tar.gz
winapi-common-6ec9be89f8cc7bd5521dfe50bd313f9197f08db6.zip
fix compiler warnings
-rw-r--r--test/unit_tests/shared/console.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit_tests/shared/console.hpp b/test/unit_tests/shared/console.hpp
index cd9cccf..48d1faa 100644
--- a/test/unit_tests/shared/console.hpp
+++ b/test/unit_tests/shared/console.hpp
@@ -102,9 +102,9 @@ public:
}
std::vector<std::string> result;
- for (std::size_t i = 0; i < numof_lines; ++i) {
+ for (int16_t i = 0; i < numof_lines; ++i) {
std::wostringstream oss;
- for (std::size_t c = 0; c < buffer_size.X; ++c) {
+ for (int16_t c = 0; c < buffer_size.X; ++c) {
oss << buffer[i * buffer_size.X + c].Char.UnicodeChar;
}
result.emplace_back(boost::trim_right_copy(winapi::narrow(oss.str())));