summaryrefslogtreecommitdiff
path: root/sys/coda/coda_namecache.h
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2002-09-22 13:25:57 +0000
committerIan Dowse <iedowse@FreeBSD.org>2002-09-22 13:25:57 +0000
commitac11ad13fb9746a5244efc637645f09144e2aabd (patch)
tree369de168309e128c3e51e47198b1bc0cda6e051d /sys/coda/coda_namecache.h
parent8bca894718c6341539a9ea2dd16e02c8b9a06956 (diff)
downloadsrc-test2-ac11ad13fb9746a5244efc637645f09144e2aabd.tar.gz
src-test2-ac11ad13fb9746a5244efc637645f09144e2aabd.zip
Notes
Diffstat (limited to 'sys/coda/coda_namecache.h')
-rw-r--r--sys/coda/coda_namecache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/coda/coda_namecache.h b/sys/coda/coda_namecache.h
index 2211adfa43d7..fb9ae8c2346a 100644
--- a/sys/coda/coda_namecache.h
+++ b/sys/coda/coda_namecache.h
@@ -65,10 +65,10 @@
#ifdef oldhash
#define CODA_NC_HASH(name, namelen, cp) \
- ((name[0] + name[namelen-1] + namelen + (int)(cp)) & (coda_nc_hashsize-1))
+ ((name[0] + name[namelen-1] + namelen + (int)(intptr_t)(cp)) & (coda_nc_hashsize-1))
#else
#define CODA_NC_HASH(name, namelen, cp) \
- ((name[0] + (name[namelen-1]<<4) + namelen + (((int)cp)>>8)) & (coda_nc_hashsize-1))
+ ((name[0] + (name[namelen-1]<<4) + namelen + (((int)(intptr_t)cp)>>8)) & (coda_nc_hashsize-1))
#endif
#define CODA_NAMEMATCH(cp, name, namelen, dcp) \