From f31e096e4cb1794c2e40283ab7cec9da26897a4c Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 9 Dec 2009 19:52:10 +0100 Subject: [PATCH] hashed match: Fix only-C90 compiler warning. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Apparently 2184401929 is bigger than a signed int or something … --- src/match_hashed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/match_hashed.c b/src/match_hashed.c index 4d533050..ee3101a2 100644 --- a/src/match_hashed.c +++ b/src/match_hashed.c @@ -159,7 +159,7 @@ static int mh_match (const data_set_t __attribute__((unused)) *ds, /* {{{ */ for (host_ptr = vl->host; *host_ptr != 0; host_ptr++) { /* 2184401929 is some appropriately sized prime number. */ - hash_val = (hash_val * 2184401929) + ((uint32_t) *host_ptr); + hash_val = (hash_val * UINT32_C (2184401929)) + ((uint32_t) *host_ptr); } DEBUG ("hashed match: host = %s; hash_val = %"PRIu32";", vl->host, hash_val); -- 2.30.2