[master] b18568ace Cast for picky compilers
Poul-Henning Kamp
phk at FreeBSD.org
Tue May 16 11:29:05 UTC 2023
commit b18568ace231f1354f2af6fffc72c5da8c7201f3
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue May 16 11:28:01 2023 +0000
Cast for picky compilers
diff --git a/bin/varnishtest/vtc_log.c b/bin/varnishtest/vtc_log.c
index 89bbfa5ed..9c7e33d05 100644
--- a/bin/varnishtest/vtc_log.c
+++ b/bin/varnishtest/vtc_log.c
@@ -235,7 +235,7 @@ vtc_dump(struct vtclog *vl, int lvl, const char *pfx, const char *str, int len)
lead[lvl < 0 ? 1: lvl], vl->id, pfx);
if (len < 0)
len = strlen(str);
- else if (str[0] == 0x1f && str[1] == 0x8b)
+ else if (str[0] == 0x1f && (uint8_t)str[1] == 0x8b)
quote = VSB_QUOTE_HEX; // Dump gzip data in HEX
VSB_quote_pfx(vl->vsb, buf, str,
len > MAX_DUMP ? MAX_DUMP : len, quote);
More information about the varnish-commit
mailing list