]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
please lint.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 14 Mar 2007 14:32:44 +0000 (14:32 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 14 Mar 2007 14:32:44 +0000 (14:32 +0000)
git-svn-id: file:///svn/unbound/trunk@180 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/unitlruhash.c

index e1dd94614c6eb9fba128c8a505f61c27492701f6..8e936fe158a0408e38eac9fb7c4be0e463997db8 100644 (file)
@@ -68,7 +68,7 @@ static void test_deldata(void*, void*);
 /* --- end test representation --- */
 
 /** hash func, very bad to improve collisions. */
-static hashvalue_t myhash(int id) {return id & 0x0f;}
+static hashvalue_t myhash(int id) {return (hashvalue_t)id & 0x0f;}
 /** allocate new key, fill in hash. */
 static struct testkey* newkey(int id) {
        struct testkey* k = (struct testkey*)calloc(1, sizeof(struct testkey));