mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Remove unnecessary casts
Reviewed-by: Michael Paquier <michael.paquier@gmail.com> Reviewed-by: Ryan Murphy <ryanfmurphy@gmail.com>
This commit is contained in:
parent
17273d059c
commit
ec3a437596
@ -609,18 +609,18 @@ g_cube_leaf_consistent(NDBOX *key,
|
||||
switch (strategy)
|
||||
{
|
||||
case RTOverlapStrategyNumber:
|
||||
retval = (bool) cube_overlap_v0(key, query);
|
||||
retval = cube_overlap_v0(key, query);
|
||||
break;
|
||||
case RTSameStrategyNumber:
|
||||
retval = (bool) (cube_cmp_v0(key, query) == 0);
|
||||
retval = (cube_cmp_v0(key, query) == 0);
|
||||
break;
|
||||
case RTContainsStrategyNumber:
|
||||
case RTOldContainsStrategyNumber:
|
||||
retval = (bool) cube_contains_v0(key, query);
|
||||
retval = cube_contains_v0(key, query);
|
||||
break;
|
||||
case RTContainedByStrategyNumber:
|
||||
case RTOldContainedByStrategyNumber:
|
||||
retval = (bool) cube_contains_v0(query, key);
|
||||
retval = cube_contains_v0(query, key);
|
||||
break;
|
||||
default:
|
||||
retval = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user