From 5f2344e480add17cbd515a2dc134d10ba26e6321 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 2 Mar 2009 12:44:04 -0800 Subject: Fixed off-by-one error in hashtable calculation. --- pbstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pbstream.c') diff --git a/pbstream.c b/pbstream.c index 443ba6c..9732797 100644 --- a/pbstream.c +++ b/pbstream.c @@ -367,7 +367,7 @@ void pbstream_init_fieldset(struct pbstream_fieldset *fieldset, pbstream_field_number_t n = 0, maybe_n; for(int i = 0; i < num_fields; i++) { maybe_n = fields[i].field_number; - if(maybe_n > 8 && maybe_n/(i+1) > 2) break; + if(maybe_n > 8 && maybe_n/(i+1) >= 2) break; n = maybe_n; } -- cgit v1.2.3