projects
/
smlar.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compiler warnings
[smlar.git]
/
smlar_gist.c
diff --git
a/smlar_gist.c
b/smlar_gist.c
index
b1d9073
..
480d744
100644
(file)
--- a/
smlar_gist.c
+++ b/
smlar_gist.c
@@
-3,7
+3,11
@@
#include "fmgr.h"
#include "access/gist.h"
#include "access/skey.h"
#include "fmgr.h"
#include "access/gist.h"
#include "access/skey.h"
+#if PG_VERSION_NUM < 130000
#include "access/tuptoaster.h"
#include "access/tuptoaster.h"
+#else
+#include "access/heaptoast.h"
+#endif
#include "utils/memutils.h"
typedef struct SmlSign {
#include "utils/memutils.h"
typedef struct SmlSign {
@@
-242,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;