Fix compilation warning on alpha when converting pointer to integer

to generate hash index.

Reviewed by:	 Andrew Gallatin <gallatin@cs.duke.edu>
This commit is contained in:
Matthew Dillon 1999-12-18 19:20:05 +00:00
parent 69963ed38d
commit 60c959f40b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54785
2 changed files with 2 additions and 2 deletions

View File

@ -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--) {

View File

@ -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--) {