File: Avoid-GCC-warning-suggesting-parentheses.patch

package info (click to toggle)
xml-security-c 1.7.3-4%2Bdeb9u3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,096 kB
  • sloc: cpp: 47,259; sh: 4,123; makefile: 503
file content (25 lines) | stat: -rw-r--r-- 901 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: =?utf-8?q?Ferenc_W=C3=A1gner?= <wferi@niif.hu>
Date: Sun, 31 Jan 2016 01:26:38 +0100
Subject: Avoid GCC warning suggesting parentheses

---
 xsec/utils/XSECDOMUtils.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xsec/utils/XSECDOMUtils.cpp b/xsec/utils/XSECDOMUtils.cpp
index 4937434..486a33d 100644
--- a/xsec/utils/XSECDOMUtils.cpp
+++ b/xsec/utils/XSECDOMUtils.cpp
@@ -709,9 +709,9 @@ XMLCh * decodeDName(const XMLCh * toDecode) {
 
 static bool isHexDigit(const XMLCh toCheck)
 {
-    if ((toCheck >= chDigit_0) && (toCheck <= chDigit_9)
-    ||  (toCheck >= chLatin_A) && (toCheck <= chLatin_F)
-    ||  (toCheck >= chLatin_a) && (toCheck <= chLatin_f))
+    if ((toCheck >= chDigit_0 && toCheck <= chDigit_9)
+    ||  (toCheck >= chLatin_A && toCheck <= chLatin_F)
+    ||  (toCheck >= chLatin_a && toCheck <= chLatin_f))
     {
         return true;
     }