We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f2f79f6 + 245fd0c commit 40b769eCopy full SHA for 40b769e
1 file changed
player/quantizer_decoder.c
@@ -36,7 +36,7 @@ void decode_line_quantizer(uint8_t * hops, uint8_t * component_value, int hops_l
36
}
37
// Checks that there wont be overflow plus if gradient is activated.
38
#ifdef IS_GRADIENT
39
- if ((hop0 + gradient >= 1) && (hop0 + gradient <= 255))
+ if (!(hop0 + gradient < 1) || (hop0 + gradient > 255))
40
hop0 += gradient;
41
#endif
42
0 commit comments