diff options
author | Neil MacIntosh <neilmac@microsoft.com> | 2016-07-29 11:16:06 -0700 |
---|---|---|
committer | Neil MacIntosh <neilmac@microsoft.com> | 2016-07-29 11:16:06 -0700 |
commit | 8e31f53f8a3132c497363bd87f03204d3d7969af (patch) | |
tree | da7db6d217a5570a5444b18e4446d9fb738682f7 /tests/utils_tests.cpp | |
parent | a0cf1ecc499b9a5609dd3436c5d83d08a3377f9d (diff) | |
download | Microsoft-GSL-8e31f53f8a3132c497363bd87f03204d3d7969af.tar.gz |
Building clean with MSVC12.
Diffstat (limited to 'tests/utils_tests.cpp')
-rw-r--r-- | tests/utils_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils_tests.cpp b/tests/utils_tests.cpp index a46d6e4..11582de 100644 --- a/tests/utils_tests.cpp +++ b/tests/utils_tests.cpp @@ -103,7 +103,7 @@ SUITE(utils_tests) CHECK(narrow<uint32_t>(int32_t(0)) == 0); CHECK(narrow<uint32_t>(int32_t(1)) == 1); - CHECK(narrow<uint32_t>(int32_max) == int32_max); + CHECK(narrow<uint32_t>(int32_max) == static_cast<uint32_t>(int32_max)); CHECK_THROW(narrow<uint32_t>(int32_t(-1)), narrowing_error); CHECK_THROW(narrow<uint32_t>(int32_min), narrowing_error); |