add parentheses to avoid compiler warning

avoids a warning from -Wparentheses
This commit is contained in:
Michael Ossmann
2022-08-22 14:29:34 -04:00
committed by Martin Ling
parent e88a0387cb
commit c703a72ac0

View File

@ -883,7 +883,8 @@ int main(int argc, char** argv)
u64toa(freq_hz, &ascii_u64_data[0]));
} else if (automatic_tuning) {
if ((freq_hz > FREQ_MAX_HZ | freq_hz < FREQ_MIN_HZ) && !force_ranges) {
if (((freq_hz > FREQ_MAX_HZ) | (freq_hz < FREQ_MIN_HZ)) &&
!force_ranges) {
fprintf(stderr,
"argument error: freq_hz should be between %s and %s.\n",
u64toa(FREQ_MIN_HZ, &ascii_u64_data[0]),