Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when saving float values. #10

Merged
merged 1 commit into from
Jan 11, 2012
Merged

Issue when saving float values. #10

merged 1 commit into from
Jan 11, 2012

Conversation

Nisden
Copy link
Contributor

@Nisden Nisden commented Jan 4, 2012

Before this change I got a exception when trying to save a float value.

You can change it to Fixed32 it works like a dream.

If you look in the ProtoWriter.cs Source code it only supports Fixed32 or Fixed64
http://code.google.com/p/protobuf-net/source/browse/trunk/protobuf-net/ProtoWriter.cs?r=423#801

@rdingwall rdingwall merged commit 3ef78e8 into dotarj:master Jan 11, 2012
@rdingwall
Copy link
Collaborator

Brilliant, thanks Nick - not sure how I missed that but have merged and added tests for it. Also fixed for doubles as well (Fixed64). Fix is in NuGet now (and upgraded to protobuf-net 2.0.0.480)

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.

2 participants