You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the problem comes from the CBOR export. My floating point type is float, not double.
In function write_cbor, writing a floating point value forces the type to be 0xFB, even for floats. This works for double, but should be 0xFA for floats.
The text was updated successfully, but these errors were encountered:
What is the issue you have?
When exporting to CBOR, in some cases the file is not properly formatted
Please describe the steps to reproduce the issue. Can you provide a small but working code example?
What is the expected behavior?
The cbor file should load properly
And what is the actual behavior instead?
JSON_THROW(parse_error::create(110, chars_read, "unexpected end of input"));
Which compiler and operating system are you using? Is it a supported compiler?
OSX, Xcode 9.4.1 clang
Did you use a released version of the library or the version from the
develop
branch?release
If you experience a compilation error: can you compile and run the unit tests?
I think the problem comes from the CBOR export. My floating point type is float, not double.
In function write_cbor, writing a floating point value forces the type to be 0xFB, even for floats. This works for double, but should be 0xFA for floats.
The text was updated successfully, but these errors were encountered: