diff options
-rw-r--r-- | chapters/type_conversion.adoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chapters/type_conversion.adoc b/chapters/type_conversion.adoc index d6cd1b2..415c5d9 100644 --- a/chapters/type_conversion.adoc +++ b/chapters/type_conversion.adoc @@ -55,8 +55,8 @@ for_each(index in shape) { ERROR_IF(out_t != int8_t && out_t != uint8_t && out_t != uint16_t && output_zp != 0); - ERROR_IF(in_t == uint16_t && (input_zp != 0 || input_zp != 32768)); - ERROR_IF(out_t == uint16_t && (output_zp != 0 || output_zp != 32768)); + ERROR_IF(in_t == uint16_t && input_zp != 0 && input_zp != 32768); + ERROR_IF(out_t == uint16_t && output_zp != 0 && output_zp != 32768); ERROR_IF(scale32 && in_t == int48_t); ERROR_IF(!scale32 && double_round); int48_t value = tensor_read<in_t>(input, shape, index); |