aboutsummaryrefslogtreecommitdiff
path: root/contrib/intarray/_int_tool.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-09-08 09:44:04 +0900
committerMichael Paquier <michael@paquier.xyz>2021-09-08 09:44:04 +0900
commitfd0625c7a9c679c0c1e896014b8f49a489c3a245 (patch)
treecacddafcd64a4f00d87f6551b29937f9e5ced415 /contrib/intarray/_int_tool.c
parentd6c916f020e291b45563d4e76a649e9364cb6f2d (diff)
downloadpostgresql-fd0625c7a9c679c0c1e896014b8f49a489c3a245.tar.gz
postgresql-fd0625c7a9c679c0c1e896014b8f49a489c3a245.zip
Clean up some code using "(expr) ? true : false"
All the code paths simplified here were already using a boolean or used an expression that led to zero or one, making the extra bits unnecessary. Author: Justin Pryzby Reviewed-by: Tom Lane, Michael Paquier, Peter Smith Discussion: https://postgr.es/m/20210428182936.GE27406@telsasoft.com
Diffstat (limited to 'contrib/intarray/_int_tool.c')
-rw-r--r--contrib/intarray/_int_tool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/intarray/_int_tool.c b/contrib/intarray/_int_tool.c
index 91690aff51f..8ed4d63fc3c 100644
--- a/contrib/intarray/_int_tool.c
+++ b/contrib/intarray/_int_tool.c
@@ -41,7 +41,7 @@ inner_int_contains(ArrayType *a, ArrayType *b)
break; /* db[j] is not in da */
}
- return (n == nb) ? true : false;
+ return (n == nb);
}
/* arguments are assumed sorted */