blob: 733df65577a831eb5574ba9e9122962475e2db99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ao,v 1.1 2008/09/18 12:33:44 taca Exp $
--- lib/RK/ncache.c.orig 2002-10-19 17:27:45.000000000 +0900
+++ lib/RK/ncache.c
@@ -27,7 +27,7 @@ static char rcsid[]="$Id: ncache.c,v 1.1
#include "RKintern.h"
#define NCHASH 101
-#define hash(x) ((int)((x)%NCHASH))
+#define hash(x) ((int)(((unsigned long)(x))%NCHASH))
static struct ncache Nchash[NCHASH];
static struct ncache Ncfree;
|