aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/fixtures/LogicalFixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/validation/fixtures/LogicalFixture.h')
-rw-r--r--tests/validation/fixtures/LogicalFixture.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/validation/fixtures/LogicalFixture.h b/tests/validation/fixtures/LogicalFixture.h
index 4bedb378bb..9f64d89d10 100644
--- a/tests/validation/fixtures/LogicalFixture.h
+++ b/tests/validation/fixtures/LogicalFixture.h
@@ -46,10 +46,10 @@ protected:
template <typename U>
void fill(U &&tensor, int i)
{
- constexpr auto zero = (uint8_t)0;
- constexpr auto one = (uint8_t)0x1;
- constexpr auto mixed = (uint8_t)0xAA;
- constexpr auto mixed_bitwise_not = (uint8_t) ~(0xAA);
+ constexpr auto zero = static_cast<uint8_t>(0);
+ constexpr auto one = static_cast<uint8_t>(0x1);
+ constexpr auto mixed = static_cast<uint8_t>(0xAA);
+ constexpr auto mixed_bitwise_not = static_cast<uint8_t>((~0xAA));
library->fill_static_values(tensor, i == 0 ?
std::vector<uint8_t> { zero, one, zero, one, mixed, zero, mixed } :