Skip to content

C++ type cast issue #29

@arkjedrz

Description

@arkjedrz

If provided JSON contains numbers - the are improperly stored as boolean.
Changing the order of execution in any_to_kvsvalue seem to affect results. E.g., normally double values are stored as booleans, but modifying code to handle double before bool type cause bool tests to fail.
I was not able to reproduce the issue using only any_to_kvsvalue.

Reproducer is available in #28.

  • Checkout to "arkjedrz_cpp-typecast-issue".
  • Run bazel test //tests/cpp:test_kvs_type_issue_repro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions