diff options
Diffstat (limited to 'sys/fs/coda')
-rw-r--r-- | sys/fs/coda/coda_namecache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/coda/coda_namecache.h b/sys/fs/coda/coda_namecache.h index 2211adf..fb9ae8c 100644 --- a/sys/fs/coda/coda_namecache.h +++ b/sys/fs/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) \ |