mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
2 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue