summaryrefslogtreecommitdiff
path: root/shells/fish/files/patch-util.c
blob: 8e7150165042a6bc767b6d2f28beca6ba528e36c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- util.c.orig	2010-01-13 06:44:46.000000000 -0800
+++ util.c	2010-01-13 06:46:39.000000000 -0800
@@ -320,7 +320,7 @@
 {
 	int pos;
 	
-	if( (float)(h->count+1)/h->size > 0.75f )
+	if( (float)(h->count+1) > 0.75f * h->size )
 	{
 		if( !hash_realloc( h, (h->size+1) * 2 -1 ) )
 		{