Skip to content

Incorrect bit toggle in decode loop #3

@Imran-imtiaz48

Description

@Imran-imtiaz48

Location: Inside decode_geohash, this line:


SET @even = ~@even;


~ is a bitwise NOT, not a boolean toggle. Since @even is BIT, ~1 becomes -2 and ~0 becomes -1, so the logic breaks after the first loop. It should toggle between 1 and 0, not invert all bits.

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