summaryrefslogtreecommitdiff
path: root/devel/libg++/patches/patch-ab
blob: 3181ecc28cea02c7523510e81974d509b682d1bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ab,v 1.1 2001/04/04 16:26:12 skrll Exp $

--- libg++/src/hash.cc.orig	Sat Jun 24 17:45:40 1995
+++ libg++/src/hash.cc
@@ -41,7 +41,7 @@
 unsigned int multiplicativehash(int x)
 {
   // uses a const close to golden ratio * pow(2,32)
-  return ((unsigned)x) * 2654435767;
+  return ((unsigned)x) * 2654435767U;
 }