Use `long' to cast a pointer to an integer and back.

This commit is contained in:
pk 1997-10-14 08:50:18 +00:00
parent b174d20bc1
commit dfbda96da0

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_swap.c,v 1.45 1997/10/13 19:15:19 pk Exp $ */
/* $NetBSD: vm_swap.c,v 1.46 1997/10/14 08:50:18 pk Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Matthew R. Green
@ -272,7 +272,7 @@ struct vndbuf {
/* To get from a buffer to the encapsulating vndbuf */
#define BUF_TO_VNDBUF(bp) \
((struct vndbuf *)((int)bp - ((int)&((struct vndbuf *)0)->vb_buf)))
((struct vndbuf *)((long)bp - ((long)&((struct vndbuf *)0)->vb_buf)))
/*
* We keep a pool vndbuf's and vndxfer structures.