diff options
Diffstat (limited to 'arm_compute/core/Types.h')
-rw-r--r-- | arm_compute/core/Types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arm_compute/core/Types.h b/arm_compute/core/Types.h index e8be6127a8..eaff8fb709 100644 --- a/arm_compute/core/Types.h +++ b/arm_compute/core/Types.h @@ -120,7 +120,7 @@ struct QuantizationInfo float dequantize(uint8_t value) const { ARM_COMPUTE_ERROR_ON_MSG(scale == 0, "QuantizationInfo::dequantize: scale == 0"); - float dequantized = (value - offset) * scale; + float dequantized = (static_cast<int>(value) - offset) * scale; return dequantized; } |