
marvin at rectangular
Sep 19, 2008, 5:26 PM
Views: 3846
Permalink
|
|
r3883 - trunk/c_src/KinoSearch/Posting
|
|
Author: creamyg Date: 2008-09-19 17:26:50 -0700 (Fri, 19 Sep 2008) New Revision: 3883 Modified: trunk/c_src/KinoSearch/Posting/ScorePosting.c Log: Fix bug in ScorePost_Read() where realloc() was being called every time rather than only when the buffer needed to be enlarged. Modified: trunk/c_src/KinoSearch/Posting/ScorePosting.c =================================================================== --- trunk/c_src/KinoSearch/Posting/ScorePosting.c 2008-09-19 04:20:03 UTC (rev 3882) +++ trunk/c_src/KinoSearch/Posting/ScorePosting.c 2008-09-20 00:26:50 UTC (rev 3883) @@ -145,6 +145,7 @@ num_prox = self->freq; if (num_prox > self->prox_cap) { self->prox = REALLOCATE(self->prox, num_prox, u32_t); + self->prox_cap = num_prox; } positions = self->prox; _______________________________________________ kinosearch-commits mailing list kinosearch-commits [at] rectangular http://www.rectangular.com/mailman/listinfo/kinosearch-commits
|