Commit ec3a4375 authored by Peter Eisentraut's avatar Peter Eisentraut

Remove unnecessary casts

Reviewed-by: default avatarMichael Paquier <michael.paquier@gmail.com>
Reviewed-by: default avatarRyan Murphy <ryanfmurphy@gmail.com>
parent 17273d05
...@@ -609,18 +609,18 @@ g_cube_leaf_consistent(NDBOX *key, ...@@ -609,18 +609,18 @@ g_cube_leaf_consistent(NDBOX *key,
switch (strategy) switch (strategy)
{ {
case RTOverlapStrategyNumber: case RTOverlapStrategyNumber:
retval = (bool) cube_overlap_v0(key, query); retval = cube_overlap_v0(key, query);
break; break;
case RTSameStrategyNumber: case RTSameStrategyNumber:
retval = (bool) (cube_cmp_v0(key, query) == 0); retval = (cube_cmp_v0(key, query) == 0);
break; break;
case RTContainsStrategyNumber: case RTContainsStrategyNumber:
case RTOldContainsStrategyNumber: case RTOldContainsStrategyNumber:
retval = (bool) cube_contains_v0(key, query); retval = cube_contains_v0(key, query);
break; break;
case RTContainedByStrategyNumber: case RTContainedByStrategyNumber:
case RTOldContainedByStrategyNumber: case RTOldContainedByStrategyNumber:
retval = (bool) cube_contains_v0(query, key); retval = cube_contains_v0(query, key);
break; break;
default: default:
retval = FALSE; retval = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment