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
{{ message }}
Repository navigation
Conversions between float and int are not type-checked. #1139
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.
Activity
redboltz commentedon Aug 22, 2024
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.
This update was implemented in version 4.1.2. You can refer to the changelog here: https://github.com/msgpack/msgpack-c/blob/cpp_master/CHANGELOG.md#2022-09-07-version-412-for-c.
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.
mayuehit commentedon Aug 22, 2024
mark-edgington commentedon Jul 28, 2025
This appears to have been resolved by #1144. Perhaps this issue can now be closed?
mayuehit commentedon Jul 28, 2025