mirror of
https://github.com/postgres/postgres.git
synced 2025-12-12 02:37:31 +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:
@@ -171,7 +171,7 @@ ginReadTuple(GinState *ginstate, OffsetNumber attnum, IndexTuple itup,
|
||||
{
|
||||
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);
|
||||
|
||||
@@ -999,8 +999,7 @@ gin_consistent_jsonb(PG_FUNCTION_ARGS)
|
||||
if (nkeys > 0)
|
||||
{
|
||||
Assert(extra_data && extra_data[0]);
|
||||
res = execute_jsp_gin_node((JsonPathGinNode *) extra_data[0], check,
|
||||
false) != GIN_FALSE;
|
||||
res = execute_jsp_gin_node(extra_data[0], check, false) != GIN_FALSE;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1060,8 +1059,7 @@ gin_triconsistent_jsonb(PG_FUNCTION_ARGS)
|
||||
if (nkeys > 0)
|
||||
{
|
||||
Assert(extra_data && extra_data[0]);
|
||||
res = execute_jsp_gin_node((JsonPathGinNode *) extra_data[0], check,
|
||||
true);
|
||||
res = execute_jsp_gin_node(extra_data[0], check, true);
|
||||
|
||||
/* Should always recheck the result */
|
||||
if (res == GIN_TRUE)
|
||||
@@ -1258,8 +1256,7 @@ gin_consistent_jsonb_path(PG_FUNCTION_ARGS)
|
||||
if (nkeys > 0)
|
||||
{
|
||||
Assert(extra_data && extra_data[0]);
|
||||
res = execute_jsp_gin_node((JsonPathGinNode *) extra_data[0], check,
|
||||
false) != GIN_FALSE;
|
||||
res = execute_jsp_gin_node(extra_data[0], check, false) != GIN_FALSE;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -1302,8 +1299,7 @@ gin_triconsistent_jsonb_path(PG_FUNCTION_ARGS)
|
||||
if (nkeys > 0)
|
||||
{
|
||||
Assert(extra_data && extra_data[0]);
|
||||
res = execute_jsp_gin_node((JsonPathGinNode *) extra_data[0], check,
|
||||
true);
|
||||
res = execute_jsp_gin_node(extra_data[0], check, true);
|
||||
|
||||
/* Should always recheck the result */
|
||||
if (res == GIN_TRUE)
|
||||
|
||||
Reference in New Issue
Block a user