diff options
author | Noah Misch <noah@leadboat.com> | 2015-10-11 23:53:35 -0400 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2015-10-11 23:53:35 -0400 |
commit | 7732d49ca211571552bf82b5207deed95c0cc09c (patch) | |
tree | 6076ea33201132e5b850f5a4ae4cc51f7430bc8e /src/backend/utils/adt/jsonb_util.c | |
parent | f20b26960ae62a3ffd12782eea09e0e9c23a2ac1 (diff) | |
download | postgresql-7732d49ca211571552bf82b5207deed95c0cc09c.tar.gz postgresql-7732d49ca211571552bf82b5207deed95c0cc09c.zip |
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.
Diffstat (limited to 'src/backend/utils/adt/jsonb_util.c')
-rw-r--r-- | src/backend/utils/adt/jsonb_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/jsonb_util.c b/src/backend/utils/adt/jsonb_util.c index 4d733159d06..c402eab22e6 100644 --- a/src/backend/utils/adt/jsonb_util.c +++ b/src/backend/utils/adt/jsonb_util.c @@ -187,7 +187,7 @@ compareJsonbContainers(JsonbContainer *a, JsonbContainer *b) { JsonbValue va, vb; - int ra, + JsonbIteratorToken ra, rb; ra = JsonbIteratorNext(&ita, &va, false); @@ -961,10 +961,10 @@ freeAndGetParent(JsonbIterator *it) bool JsonbDeepContains(JsonbIterator **val, JsonbIterator **mContained) { - uint32 rval, - rcont; JsonbValue vval, vcontained; + JsonbIteratorToken rval, + rcont; /* * Guard against stack overflow due to overly complex Jsonb. |