diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/nfs/nfs_serv.c | 2 | ||||
-rw-r--r-- | sys/nfsserver/nfs_serv.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index d535483..0d28670 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -863,7 +863,7 @@ nfsrv_read(nfsd, slp, procp, mrq) * Locate best candidate */ - hi = ((int)vp / sizeof(struct vnode)) & (NUM_HEURISTIC - 1); + hi = ((int)(vm_offset_t)vp / sizeof(struct vnode)) & (NUM_HEURISTIC - 1); nh = &nfsheur[hi]; while (try--) { diff --git a/sys/nfsserver/nfs_serv.c b/sys/nfsserver/nfs_serv.c index d535483..0d28670 100644 --- a/sys/nfsserver/nfs_serv.c +++ b/sys/nfsserver/nfs_serv.c @@ -863,7 +863,7 @@ nfsrv_read(nfsd, slp, procp, mrq) * Locate best candidate */ - hi = ((int)vp / sizeof(struct vnode)) & (NUM_HEURISTIC - 1); + hi = ((int)(vm_offset_t)vp / sizeof(struct vnode)) & (NUM_HEURISTIC - 1); nh = &nfsheur[hi]; while (try--) { |