mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Use JsonbIteratorToken consistently in automatic variable declarations.
Many functions stored JsonbIteratorToken values in variables of other integer types. Also, standardize order relative to other declarations. Expect compilers to generate the same code before and after this change.
This commit is contained in:
@ -254,8 +254,8 @@ jsonb_hash(PG_FUNCTION_ARGS)
|
||||
{
|
||||
Jsonb *jb = PG_GETARG_JSONB(0);
|
||||
JsonbIterator *it;
|
||||
int32 r;
|
||||
JsonbValue v;
|
||||
JsonbIteratorToken r;
|
||||
uint32 hash = 0;
|
||||
|
||||
if (JB_ROOT_COUNT(jb) == 0)
|
||||
@ -283,7 +283,7 @@ jsonb_hash(PG_FUNCTION_ARGS)
|
||||
case WJB_END_OBJECT:
|
||||
break;
|
||||
default:
|
||||
elog(ERROR, "invalid JsonbIteratorNext rc: %d", r);
|
||||
elog(ERROR, "invalid JsonbIteratorNext rc: %d", (int) r);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user