Skip to content

Regression: gridDistance returns 0 rather than -1 on failure #24

Description

@bovine3dom

Hi, thanks for this package, I've been using it for a while for various things.

Today Julia decided to update me to v0.3.1 and I noticed a regression - when calculating grid distances, the new version returns 0 rather than -1 on failure.

# H3 v0.2.0
H3.API.h3Distance(0x089012092d37ffff,0x089012092d37ffff) # = 0 👍 
H3.API.h3Distance(0x089012092d37ffff,0x0895536db06bffff) # = -1 👍 

# H3 v0.3.1
H3.API.gridDistance(0x089012092d37ffff,0x089012092d37ffff) # = 0 👍 
H3.API.gridDistance(0x089012092d37ffff,0x0895536db06bffff) # = 0 👎 😢 

Let me know if I can help out at all :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions