blob: dae9978eb1f6fa5add3c6411248e140f7250d135 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ad,v 1.1 2010/03/08 10:53:05 wiz Exp $
--- src/hash.cc.orig 2004-05-10 00:40:55.000000000 +0000
+++ src/hash.cc
@@ -144,7 +144,7 @@ int hash(const unsigned int& x, int M)
int hash(FileEntry*const& x, int M)
{
- return (unsigned int)x % M;
+ return (unsigned int)(unsigned long)x % M;
}
#define generic template<class Key, class Data>
|