diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-04 16:11:03 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-04 16:12:37 +0300 |
commit | 6845df16333e7504abd7cceb2b5cb4e7637c73fb (patch) | |
tree | 2de6857a5bec4a45d9d9cb89622481f6c422b7a7 /test/unit_tests/resource.cpp | |
parent | fix compiler warnings (diff) | |
download | winapi-common-6845df16333e7504abd7cceb2b5cb4e7637c73fb.tar.gz winapi-common-6845df16333e7504abd7cceb2b5cb4e7637c73fb.zip |
move away from variable-size ints
Diffstat (limited to '')
-rw-r--r-- | test/unit_tests/resource.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit_tests/resource.cpp b/test/unit_tests/resource.cpp index 894edca..66556d5 100644 --- a/test/unit_tests/resource.cpp +++ b/test/unit_tests/resource.cpp @@ -12,6 +12,8 @@ #include <boost/format.hpp> #include <boost/test/unit_test.hpp> +#include <cstdint> + using namespace winapi; #include <ostream> @@ -20,7 +22,7 @@ using namespace winapi; namespace std { ostream& operator<<(ostream& os, unsigned char c) { - return os << boost::format("%|1$02x|") % static_cast<unsigned int>(c); + return os << boost::format("%|1$02x|") % static_cast<uint32_t>(c); } ostream& operator<<(ostream& os, const vector<unsigned char>& cs) { |