Skip to content

Commit 4817f8a

Browse files
Fix ambiguous conditions (#1373)
- These conditions were ambiguous for compiler as well as for other devs.
1 parent 0bb5f20 commit 4817f8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/agtype_ops.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ Datum agtype_exists_agtype(PG_FUNCTION_ARGS)
12771277
aval);
12781278
}
12791279
else if (AGT_ROOT_IS_ARRAY(agt) &&
1280-
!aval->type == AGTV_NULL)
1280+
aval->type != AGTV_NULL)
12811281
{
12821282
v = find_agtype_value_from_container(&agt->root,
12831283
AGT_FARRAY,
@@ -1319,7 +1319,7 @@ Datum agtype_exists_any_agtype(PG_FUNCTION_ARGS)
13191319
PG_RETURN_BOOL(true);
13201320
}
13211321
else if (AGT_ROOT_IS_ARRAY(agt) &&
1322-
!(&elem)->type == AGTV_NULL &&
1322+
(&elem)->type != AGTV_NULL &&
13231323
find_agtype_value_from_container(&agt->root,
13241324
AGT_FARRAY,
13251325
&elem))

0 commit comments

Comments
 (0)