[master] 4e568f8fc Polish

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Fri Nov 22 14:34:06 UTC 2019


commit 4e568f8fc49cb80797d98a8f0baf097a27b5c1f6
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Fri Nov 22 15:33:37 2019 +0100

    Polish

diff --git a/lib/libvmod_blob/base64.c b/lib/libvmod_blob/base64.c
index 63f45a8c8..45987c2ae 100644
--- a/lib/libvmod_blob/base64.c
+++ b/lib/libvmod_blob/base64.c
@@ -177,7 +177,7 @@ base64_encode_l(size_t l)
 size_t
 base64_decode_l(size_t l)
 {
-	return (((l) * 3) >> 2);
+	return ((l * 3) >> 2);
 }
 
 static inline int
diff --git a/lib/libvmod_blob/hex.c b/lib/libvmod_blob/hex.c
index 91c6124b6..2fe05a422 100644
--- a/lib/libvmod_blob/hex.c
+++ b/lib/libvmod_blob/hex.c
@@ -60,13 +60,13 @@ const uint8_t nibble[] = {
 size_t
 hex_encode_l(size_t l)
 {
-	return (((l) << 1) + 1);
+	return ((l << 1) + 1);
 }
 
 size_t
 hex_decode_l(size_t l)
 {
-	return (((l) + 1) >> 1);
+	return ((l + 1) >> 1);
 }
 
 static inline char


More information about the varnish-commit mailing list