Skip to content

Preserve float width in MessagePack output - #710

Open
Miguel-OYeah wants to merge 1 commit into
getml:mainfrom
Miguel-OYeah:fix/msgpack-float-width
Open

Preserve float width in MessagePack output#710
Miguel-OYeah wants to merge 1 commit into
getml:mainfrom
Miguel-OYeah:fix/msgpack-float-width

Conversation

@Miguel-OYeah

Copy link
Copy Markdown

The MessagePack writer currently encodes both C++ float and double values as float64.

This change writes float values as MessagePack float32 while keeping double values as float64. A regression test checks both raw wire types.

Testing: all 47 MessagePack tests pass.

Fixes #708

Write C++ float values with MessagePack float32 encoding while keeping double values as float64. Add a wire-level regression test for both cases.

Fixes getml#708
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MessagePack writer encodes C++ float values as float64

1 participant