Use unsigned for version number in hash_info.cpp

Was getting a `size_t` to `unsigned int` conversion when writing to stream, so
just use `unsigned` from the start.
This commit is contained in:
Daniel James
2018-01-24 13:37:35 +00:00
parent 8ea85f5ad2
commit 1e263669cb

View File

@@ -12,7 +12,7 @@
#if defined(BOOST_MSVC)
struct msvc_version {
std::size_t version;
unsigned version;
char const* description;
friend bool operator<(msvc_version const& v1, msvc_version const& v2) {
@@ -46,7 +46,7 @@ void write_compiler_info() {
msvc_version* v = std::upper_bound(versions,
versions + sizeof(versions) / sizeof(*versions),
msvc) - 1;
std::size_t difference = msvc.version - v->version;
unsigned difference = msvc.version - v->version;
std::cout << v->description << std::endl;
if (difference) {