[num_segments] Add parentheses to suppress the warning about the operators precedence