Skip to content

Commit 47e7866

Browse files
Fix compile warning for OGRwkbGeometryType enum case (#235)
1 parent d371dde commit 47e7866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyogrio/_io.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ def ogr_write(
16221622
# TODO: geometry must not be null or errors
16231623
wkb = geometry[i]
16241624
if wkb is not None:
1625-
wkbtype = bytearray(wkb)[1]
1625+
wkbtype = <int>bytearray(wkb)[1]
16261626
# may need to consider all 4 bytes: int.from_bytes(wkb[0][1:4], byteorder="little")
16271627
# use "little" if the first byte == 1
16281628
ogr_geometry = OGR_G_CreateGeometry(<OGRwkbGeometryType>wkbtype)

0 commit comments

Comments
 (0)