This is an automated email from the ASF dual-hosted git repository.
jgemignani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/age.git
The following commit(s) were added to refs/heads/master by this push:
new 4817f8a0 Fix ambiguous conditions (#1373)
4817f8a0 is described below
commit 4817f8a049ade6db698ece99eda3fd1f3c92bd97
Author: Muhammad Taha Naveed <[email protected]>
AuthorDate: Tue Nov 7 23:44:07 2023 +0500
Fix ambiguous conditions (#1373)
- These conditions were ambiguous for compiler as well as for other
devs.
---
src/backend/utils/adt/agtype_ops.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/utils/adt/agtype_ops.c
b/src/backend/utils/adt/agtype_ops.c
index 0e4d4a14..782393ff 100644
--- a/src/backend/utils/adt/agtype_ops.c
+++ b/src/backend/utils/adt/agtype_ops.c
@@ -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,
@@ -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))