Skip to content

Commit

Permalink
Fix ambiguous conditions (#1377)
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 Nov 7, 2023
1 parent fd79a95 commit ac24c6d
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 @@ -1031,7 +1031,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 @@ -1073,7 +1073,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 ac24c6d

Please sign in to comment.