From ca4cdd80deabb7145969dcbca67e44ea00b2bd27 Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Wed, 20 Jul 2016 12:47:21 -0700 Subject: [PATCH] 64-bit clean fixes. --- tests/span_tests.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp index 7652ff9..77b799a 100644 --- a/tests/span_tests.cpp +++ b/tests/span_tests.cpp @@ -131,23 +131,23 @@ SUITE(span_tests) TEST(from_nullptr_length_constructor) { { - span s{nullptr, 0}; + span s{nullptr, static_cast::index_type>(0)}; CHECK(s.length() == 0 && s.data() == nullptr); - span cs{nullptr, 0}; + span cs{nullptr, static_cast::index_type>(0)}; CHECK(cs.length() == 0 && cs.data() == nullptr); } { - span s{nullptr, 0}; + span s{nullptr, static_cast::index_type>(0)}; CHECK(s.length() == 0 && s.data() == nullptr); - span cs{nullptr, 0}; + span cs{nullptr, static_cast::index_type>(0)}; CHECK(cs.length() == 0 && cs.data() == nullptr); } { - auto workaround_macro = []() { span s{ nullptr, 0 }; }; + auto workaround_macro = []() { span s{ nullptr, static_cast::index_type>(0) }; }; CHECK_THROW(workaround_macro(), fail_fast); } @@ -168,10 +168,10 @@ SUITE(span_tests) } { - span s{nullptr, 0}; + span s{nullptr, static_cast::index_type>(0)}; CHECK(s.length() == 0 && s.data() == nullptr); - span cs{nullptr, 0}; + span cs{nullptr, static_cast::index_type>(0)}; CHECK(cs.length() == 0 && cs.data() == nullptr); } } @@ -194,7 +194,7 @@ SUITE(span_tests) { int* p = nullptr; - span s{p, 0}; + span s{p, static_cast::index_type>(0)}; CHECK(s.length() == 0 && s.data() == nullptr); }