diff options
author | MikeGitb <MikeGitb@users.noreply.github.com> | 2017-04-02 21:30:49 +0200 |
---|---|---|
committer | Neil MacIntosh <neilmac@microsoft.com> | 2017-04-02 12:30:49 -0700 |
commit | ade86caa92e47ad5e5560b8a00d88cb31d79b53b (patch) | |
tree | 566c58f7ac7985cae6337730281f859615530d78 /tests/utils_tests.cpp | |
parent | 33006026535d3664629585b67b852daeb6eaca9f (diff) | |
download | Microsoft-GSL-ade86caa92e47ad5e5560b8a00d88cb31d79b53b.tar.gz |
Fix some corechecker warnings (#470)
* Improve const correctness in string_span
* Improve const correctness in bounds_tests.cpp and byte_tests.cpp
* Improve const correctness in span_tests.cpp
* Improve const correctness in utils_tests.cpp
* Use gsl::owner for dynamically allocated memory in string_span_tests.cpp
* Improve const correctness in string_span_tests.cpp
* Improve const correctness for strided_span_tests.cpp
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 781f692..0048c88 100644 --- a/tests/utils_tests.cpp +++ b/tests/utils_tests.cpp @@ -92,7 +92,7 @@ SUITE(utils_tests) TEST(narrow) { int n = 120; - char c = narrow<char>(n); + const char c = narrow<char>(n); CHECK(c == 120); n = 300; |