mirror of
https://github.com/postgres/postgres.git
synced 2025-12-09 02:08:45 +03:00
Remove no longer needed casts from Pointer
These casts used to be required when Pointer was char *, but now it's
void * (commit 1b2bb5077e), so they are not needed anymore.
Author: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Discussion: https://www.postgresql.org/message-id/4154950a-47ae-4223-bd01-1235cc50e933%40eisentraut.org
This commit is contained in:
@@ -107,7 +107,7 @@ ginReadTupleWithoutState(IndexTuple itup, int *nitems)
|
||||
{
|
||||
if (nipd > 0)
|
||||
{
|
||||
ipd = ginPostingListDecode((GinPostingList *) ptr, &ndecoded);
|
||||
ipd = ginPostingListDecode(ptr, &ndecoded);
|
||||
if (nipd != ndecoded)
|
||||
elog(ERROR, "number of items mismatch in GIN entry tuple, %d in tuple header, %d decoded",
|
||||
nipd, ndecoded);
|
||||
|
||||
@@ -247,8 +247,7 @@ gin_trgm_consistent(PG_FUNCTION_ARGS)
|
||||
res = true;
|
||||
}
|
||||
else
|
||||
res = trigramsMatchGraph((TrgmPackedGraph *) extra_data[0],
|
||||
check);
|
||||
res = trigramsMatchGraph(extra_data[0], check);
|
||||
break;
|
||||
default:
|
||||
elog(ERROR, "unrecognized strategy number: %d", strategy);
|
||||
@@ -342,8 +341,7 @@ gin_trgm_triconsistent(PG_FUNCTION_ARGS)
|
||||
boolcheck = (bool *) palloc(sizeof(bool) * nkeys);
|
||||
for (i = 0; i < nkeys; i++)
|
||||
boolcheck[i] = (check[i] != GIN_FALSE);
|
||||
if (!trigramsMatchGraph((TrgmPackedGraph *) extra_data[0],
|
||||
boolcheck))
|
||||
if (!trigramsMatchGraph(extra_data[0], boolcheck))
|
||||
res = GIN_FALSE;
|
||||
pfree(boolcheck);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user