From 7cea748f5a1138b5bd06a68b330d0c4625a9135b Mon Sep 17 00:00:00 2001
From: AJ Friend <ajfriend@gmail.com>
Date: Thu, 26 Sep 2024 18:50:06 -0700
Subject: [PATCH] bump h3lib to v4.1.0 (#402)

* bump h3lib to v4.1.0

* passing tests
---
 pyproject.toml        | 2 +-
 src/h3/_cy/latlng.pyx | 4 ++++
 src/h3lib             | 2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 7507a6ca0..02219b093 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = 'scikit_build_core.build'
 
 [project]
 name = 'h3'
-version = '4.0.0b7'
+version = '4.1.0b1'
 description = "Uber's hierarchical hexagonal geospatial indexing system"
 readme = 'readme.md'
 license = {file = 'LICENSE'}
diff --git a/src/h3/_cy/latlng.pyx b/src/h3/_cy/latlng.pyx
index c3e0cdb80..493b85acd 100644
--- a/src/h3/_cy/latlng.pyx
+++ b/src/h3/_cy/latlng.pyx
@@ -157,6 +157,10 @@ def polygon_to_cells(outer, int res, holes=None):
         uint64_t n
 
     check_res(res)
+
+    if not outer:
+        return H3MemoryManager(0).to_mv()
+
     gp = GeoPolygon(outer, holes=holes)
 
     check_for_error(
diff --git a/src/h3lib b/src/h3lib
index 46a581c90..5c9114910 160000
--- a/src/h3lib
+++ b/src/h3lib
@@ -1 +1 @@
-Subproject commit 46a581c905b2747c861aa1683125276501f68a3b
+Subproject commit 5c91149104ac02c4f06faa4fc557e69cf6b131ef