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:
parent
69963ed38d
commit
60c959f40b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54785
@ -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--) {
|
||||
|
@ -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--) {
|
||||
|
Loading…
Reference in New Issue
Block a user