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
Describe the bug
I've been using msgpack-c 4.0.0, which does type checking for conversions between float and int.But when I updated to 4.1.3, I found that the same code produced a different behavior.
Thank you for reporting this issue.
The change was introduced in pull request #1018, which addresses issue #1017 that explains the rationale behind this update.
At that time, I considered it a minor refinement, so I only incremented the patch version. However, in hindsight, it might have been more appropriate to update the major version.
Anyway, this is an expected behavior.
Describe the bug
I've been using msgpack-c 4.0.0, which does type checking for conversions between float and int.But when I updated to 4.1.3, I found that the same code produced a different behavior.
To Reproduce
Code:
Output:
When I run this code with msgpack-c 4.0.0
But when I run this code with msgpack-c 4.1.3
Please prepare https://stackoverflow.com/help/minimal-reproducible-example
Expected behavior
I expect it to report an error, because this kind of unchecked type conversion tends to be problematic.
The text was updated successfully, but these errors were encountered: