From 2dbc586417d5a36fcc0aca97267388466f7fff6e Mon Sep 17 00:00:00 2001 From: Sang-Hoon Park Date: Wed, 18 Nov 2020 13:52:11 +0000 Subject: COMPMID-3961: Cleaning up logical operators on OpenCL Change-Id: I04cd23e9abcb1828e54cd59fee3bfa95a6dea3fb Signed-off-by: Sang-Hoon Park Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4461 Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins Reviewed-by: Michele Di Giorgio Reviewed-by: Manuel Bottini --- tests/validation/fixtures/LogicalFixture.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/validation/fixtures/LogicalFixture.h') 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 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(0); + constexpr auto one = static_cast(0x1); + constexpr auto mixed = static_cast(0xAA); + constexpr auto mixed_bitwise_not = static_cast((~0xAA)); library->fill_static_values(tensor, i == 0 ? std::vector { zero, one, zero, one, mixed, zero, mixed } : -- cgit v1.2.1