Fix a mind-o in tl_setmulti(): when setting a bit in the upper

32 bits of the 64-bit hash table, we have to use a 32-bit shift,
not 31.

Pointed out by: Bill Fenner
This commit is contained in:
Bill Paul 1998-05-24 00:56:49 +00:00
parent d4156d002c
commit 29b86d94dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36317

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_tl.c,v 1.3 1998/05/21 17:05:32 jkh Exp $
* $Id: if_tl.c,v 1.4 1998/05/22 15:32:22 wpaul Exp $
*/
/*
@ -240,7 +240,7 @@
#ifndef lint
static char rcsid[] =
"$Id: if_tl.c,v 1.3 1998/05/21 17:05:32 jkh Exp $";
"$Id: if_tl.c,v 1.4 1998/05/22 15:32:22 wpaul Exp $";
#endif
/*
@ -1058,7 +1058,7 @@ static void tl_setmulti(sc)
if (h < 32)
hashes[0] |= (1 << h);
else
hashes[1] |= (1 << (h - 31));
hashes[1] |= (1 << (h - 32));
}
}