summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libutil/str_util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c
index 186ce5d38..6f241b88c 100644
--- a/src/libutil/str_util.c
+++ b/src/libutil/str_util.c
@@ -1649,9 +1649,9 @@ decode:
c = *p++;
ret *= 16;
- if (c >= '0' && c <= '9') ret += c - '0';
- else if (c >= 'A' && c <= 'F') ret += c - 'A' + 10;
- else if (c >= 'a' && c <= 'f') ret += c - 'a' + 10;
+ if (c >= '0' && c <= '9') { ret += c - '0'; }
+ else if (c >= 'A' && c <= 'F') { ret += c - 'A' + 10; }
+ else if (c >= 'a' && c <= 'f') { ret += c - 'a' + 10; }
if (end - o > 0) {
*o++ = (gchar)ret;
@@ -1753,9 +1753,9 @@ decode:
c = *p++;
ret *= 16;
- if (c >= '0' && c <= '9') ret += c - '0';
- else if (c >= 'A' && c <= 'F') ret += c - 'A' + 10;
- else if (c >= 'a' && c <= 'f') ret += c - 'a' + 10;
+ if (c >= '0' && c <= '9') { ret += c - '0'; }
+ else if (c >= 'A' && c <= 'F') { ret += c - 'A' + 10; }
+ else if (c >= 'a' && c <= 'f') { ret += c - 'a' + 10; }
if (end - o > 0) {
*o++ = (gchar)ret;