X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=smlar.git;a=blobdiff_plain;f=smlar_gist.c;h=480d74451c78204d065a81220fc178c048a42859;hp=7d77788af34dc23332ad163c0584c36c0c4c3c8a;hb=f2522d5f20a46a3605a761d34a3aefcdffb94e71;hpb=25a4fef344f5c2b90e6a9d32144ee12b9198487d diff --git a/smlar_gist.c b/smlar_gist.c index 7d77788..480d744 100644 --- a/smlar_gist.c +++ b/smlar_gist.c @@ -246,11 +246,12 @@ getHashedCache(void *cache) for(i=0;inelems;i++) { uint32 hash; + int index; hash = DatumGetUInt32(FunctionCall1Coll(&stat->info->hashFunc, DEFAULT_COLLATION_OID, stat->elems[i].datum)); - int index = HASHVAL(hash); + index = HASHVAL(hash); stat->helems[i].hash = hash; stat->helems[i].idfMin = stat->helems[i].idfMax = stat->elems[i].idf;