Squelch "Clarify calculation precedence" warning from cppcheck.

For

        A & B ? C : D

put "A & B" in parentheses, to clarify the precedence.


(cherry picked from commit 138041b545)
This commit is contained in:
Guy Harris 2021-01-20 07:12:03 +00:00
parent 3ff5fc344f
commit 886465a976
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 */