[master] e686898 Try to explain to static checkers that we know what we're doing.

Poul-Henning Kamp phk at varnish-cache.org
Thu Oct 24 10:30:18 CEST 2013


commit e6868989fa4bf97921f6f95a7ba70ca84dc25c90
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Oct 24 08:30:01 2013 +0000

    Try to explain to static checkers that we know what we're doing.

diff --git a/include/vct.h b/include/vct.h
index 52530a6..4f9e2d4 100644
--- a/include/vct.h
+++ b/include/vct.h
@@ -44,9 +44,10 @@
 extern const uint16_t vct_typtab[256];
 
 static inline int
-vct_is(unsigned char x, uint16_t y)
+vct_is(int x, uint16_t y)
 {
 
+	x &= 0xff;
 	return (vct_typtab[x] & (y));
 }
 



More information about the varnish-commit mailing list