From 6fa2638ec2e2cf790c3cdaba1811087e024fbac4 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 18 Mar 2019 10:05:34 +0000 Subject: COMPMID-1995: Fix compiler issues for invalid min,max arguments. Change-Id: Iae55fdde57d6e93dec74b9ac398faa9f975ebdcb Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/864 Tested-by: Arm Jenkins Reviewed-by: Michalis Spyrou Comments-Addressed: Arm Jenkins --- arm_compute/core/NEON/NEAsymm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arm_compute') diff --git a/arm_compute/core/NEON/NEAsymm.h b/arm_compute/core/NEON/NEAsymm.h index 997f28f1f0..f71626182c 100644 --- a/arm_compute/core/NEON/NEAsymm.h +++ b/arm_compute/core/NEON/NEAsymm.h @@ -166,7 +166,7 @@ inline uint8_t finalize_quantization(int32_t in_value, int result_fixedpoint_mul in_value += result_offset_after_shift_s32; // Bound the result - uint8_t out_u8 = static_cast(std::max(0, std::min(255, in_value))); + uint8_t out_u8 = static_cast(std::max(0, std::min(255, in_value))); if(is_bounded_relu) { out_u8 = static_cast(std::max(min_u8, std::min(max_u8, out_u8))); -- cgit v1.2.1