Squelch "Clarify calculation precedence" warning from cppcheck.

For

        A & B ? C : D

put "A & B" in parentheses, to clarify the precedence.
This commit is contained in:
Guy Harris 2021-01-19 23:12:03 -08:00
parent 887cacd12c
commit 138041b545
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ double asn1_get_real(const guint8 *real_ptr, gint len) {
/* Ensure the buffer len and its content are coherent */
DISSECTOR_ASSERT(lenE < len - 1);
Eneg = (*p) & 0x80 ? TRUE : FALSE;
Eneg = ((*p) & 0x80) ? TRUE : FALSE;
for (i = 0; i < lenE; i++) {
if(Eneg) {
/* 2's complement: inverse bits */