summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ltree/ltree_op.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/ltree/ltree_op.c b/contrib/ltree/ltree_op.c
index 778dbf1e98..da1db5fcd2 100644
--- a/contrib/ltree/ltree_op.c
+++ b/contrib/ltree/ltree_op.c
@@ -91,42 +91,42 @@ Datum
ltree_lt(PG_FUNCTION_ARGS)
{
RUNCMP;
- PG_RETURN_BOOL((res < 0) ? true : false);
+ PG_RETURN_BOOL(res < 0);
}
Datum
ltree_le(PG_FUNCTION_ARGS)
{
RUNCMP;
- PG_RETURN_BOOL((res <= 0) ? true : false);
+ PG_RETURN_BOOL(res <= 0);
}
Datum
ltree_eq(PG_FUNCTION_ARGS)
{
RUNCMP;
- PG_RETURN_BOOL((res == 0) ? true : false);
+ PG_RETURN_BOOL(res == 0);
}
Datum
ltree_ge(PG_FUNCTION_ARGS)
{
RUNCMP;
- PG_RETURN_BOOL((res >= 0) ? true : false);
+ PG_RETURN_BOOL(res >= 0);
}
Datum
ltree_gt(PG_FUNCTION_ARGS)
{
RUNCMP;
- PG_RETURN_BOOL((res > 0) ? true : false);
+ PG_RETURN_BOOL(res > 0);
}
Datum
ltree_ne(PG_FUNCTION_ARGS)
{
RUNCMP;
- PG_RETURN_BOOL((res != 0) ? true : false);
+ PG_RETURN_BOOL(res != 0);
}
Datum