Skip to content

Commit

Permalink
Fix ambiguous conditions (#1373)
Browse files Browse the repository at this point in the history
- These conditions were ambiguous for compiler as well as for other
  devs.
  • Loading branch information
MuhammadTahaNaveed authored and jrgemignani committed Dec 13, 2023
1 parent e3b3aba commit 8453ec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/utils/adt/agtype_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ Datum agtype_exists_agtype(PG_FUNCTION_ARGS)
aval);
}
else if (AGT_ROOT_IS_ARRAY(agt) &&
!aval->type == AGTV_NULL)
aval->type != AGTV_NULL)
{
v = find_agtype_value_from_container(&agt->root,
AGT_FARRAY,
Expand Down Expand Up @@ -1319,7 +1319,7 @@ Datum agtype_exists_any_agtype(PG_FUNCTION_ARGS)
PG_RETURN_BOOL(true);
}
else if (AGT_ROOT_IS_ARRAY(agt) &&
!(&elem)->type == AGTV_NULL &&
(&elem)->type != AGTV_NULL &&
find_agtype_value_from_container(&agt->root,
AGT_FARRAY,
&elem))
Expand Down

0 comments on commit 8453ec0

Please sign in to comment.