silence compiler warning around a constant

git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@537 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
This commit is contained in:
Matti Aarnio 2012-07-30 11:04:20 +00:00
parent d793acbde3
commit aa5245740f
1 changed files with 2 additions and 4 deletions

View File

@ -72,8 +72,8 @@ uint32_t __attribute__((pure)) keyhash(const void const *p, int len, uint32_t ha
{
const uint8_t *u = p;
int i;
#define FNV_32_PRIME 16777619
#define FVN_32_OFFSET 2166136261
#define FNV_32_PRIME 16777619U
#define FVN_32_OFFSET 2166136261U
if (hash == 0)
hash = (uint32_t)FVN_32_OFFSET;
@ -97,8 +97,6 @@ uint32_t __attribute__((pure)) keyhashuc(const void const *p, int len, uint32_t
{
const uint8_t *u = p;
int i;
#define FNV_32_PRIME 16777619
#define FVN_32_OFFSET 2166136261
if (hash == 0)
hash = (uint32_t)FVN_32_OFFSET;