This is an automated email from the ASF dual-hosted git repository.
hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 9f71709e Fix pointer-bool-conversion warning in
`GeoHashHelper::BoundingBox` (#1760)
9f71709e is described below
commit 9f71709e95ec4f3415c1a626eb00fdc08cd68d33
Author: Jinze Wu <[email protected]>
AuthorDate: Sun Sep 17 10:35:19 2023 +0800
Fix pointer-bool-conversion warning in `GeoHashHelper::BoundingBox` (#1760)
---
src/types/geohash.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/types/geohash.cc b/src/types/geohash.cc
index 1bbcecee..c182b294 100644
--- a/src/types/geohash.cc
+++ b/src/types/geohash.cc
@@ -331,7 +331,7 @@ uint8_t GeoHashHelper::EstimateStepsByRadius(double
range_meters, double lat) {
* and maximum longitude, while bounds[1] - bounds[3] is the minimum and
* maximum latitude. */
int GeoHashHelper::BoundingBox(GeoShape *geo_shape) {
- if (!geo_shape->bounds) return 0;
+ if (!geo_shape) return 0;
double longitude = geo_shape->xy[0];
double latitude = geo_shape->xy[1];
double height =