[5.2] f6d9a8e VMOD blob: explicitly cast negative int8_t constants

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Thu Sep 7 06:59:06 UTC 2017


commit f6d9a8e4b7b4e2ed429e90dd1c679e3860eb18ae
Author: Geoff Simmons <geoff at uplex.de>
Date:   Mon Sep 4 20:15:55 2017 +0200

    VMOD blob: explicitly cast negative int8_t constants

diff --git a/lib/libvmod_blob/base64.h b/lib/libvmod_blob/base64.h
index e5318bd..708b588 100644
--- a/lib/libvmod_blob/base64.h
+++ b/lib/libvmod_blob/base64.h
@@ -28,8 +28,8 @@
 
 #include "vmod_blob.h"
 
-#define ILL -1
-#define PAD -2
+#define ILL ((int8_t) -1)
+#define PAD ((int8_t) -2)
 
 static const struct b64_alphabet {
 	const char b64[64];


More information about the varnish-commit mailing list