projects
/
smlar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
25a4fef
)
Fix compiler warnings
master
author
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 8 Nov 2021 11:49:14 +0000
(14:49 +0300)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 8 Nov 2021 11:49:14 +0000
(14:49 +0300)
smlar.c
patch
|
blob
|
history
smlar_gist.c
patch
|
blob
|
history
diff --git
a/smlar.c
b/smlar.c
index
672e453
..
ca0651f
100644
(file)
--- a/
smlar.c
+++ b/
smlar.c
@@
-526,6
+526,7
@@
Array2SimpleArrayU(ProcTypeInfo info, ArrayType *a, void *cache)
{
case TF_LOG:
s->df[i] = (1.0 + log( s->df[i] ));
{
case TF_LOG:
s->df[i] = (1.0 + log( s->df[i] ));
+ /* FALLTHROUGH */
case TF_N:
s->df[i] *= stat->idf;
break;
case TF_N:
s->df[i] *= stat->idf;
break;
diff --git
a/smlar_gist.c
b/smlar_gist.c
index
7d77788
..
480d744
100644
(file)
--- a/
smlar_gist.c
+++ b/
smlar_gist.c
@@
-246,11
+246,12
@@
getHashedCache(void *cache)
for(i=0;i<stat->nelems;i++)
{
uint32 hash;
for(i=0;i<stat->nelems;i++)
{
uint32 hash;
+ int index;
hash = DatumGetUInt32(FunctionCall1Coll(&stat->info->hashFunc,
DEFAULT_COLLATION_OID,
stat->elems[i].datum));
hash = DatumGetUInt32(FunctionCall1Coll(&stat->info->hashFunc,
DEFAULT_COLLATION_OID,
stat->elems[i].datum));
- in
t in
dex = HASHVAL(hash);
+ index = HASHVAL(hash);
stat->helems[i].hash = hash;
stat->helems[i].idfMin = stat->helems[i].idfMax = stat->elems[i].idf;
stat->helems[i].hash = hash;
stat->helems[i].idfMin = stat->helems[i].idfMax = stat->elems[i].idf;