Skip to content

CVarInt does not always properly read/write negative numbers #1144

@Greg-Griffith

Description

@Greg-Griffith

when serializing a field to disk that is wrapped in VARINT has a fairly high chance of being mistakenly deserialized as its twos compliment.

For example, the following will serialize/deserialize as -1 a majority of the time but will occasionally be 127

int var = -1
READWRITE(VARINT(var))

it was tested using a set of 10.000 entries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions