ncupper / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 0 forks source link

Decimal.MinValue not DEserialized correctly #264

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please include an e-mail address if this might need a dialogue!
==============

What steps will reproduce the problem?
1. Run attached test - it will fail
2. Apply attached fixes
3. Run attached test again - it will succeed

What is the expected output? What do you see instead?
> I really want to serialize/deserialize all Decimal values.

What version of the product are you using? On what operating system?
> v2 r480

Please provide any additional information below.
> See attached TypeModel.cs with my corrections - it seems that assignment in 
original code missed by mistake.
> case ProtoTypeCode.Decimal: BclHelpers.ReadDecimal(reader); continue;
> should be written as:
> case ProtoTypeCode.Decimal: value = BclHelpers.ReadDecimal(reader); continue;

Original issue reported on code.google.com by vadim.sk...@gmail.com on 23 Jan 2012 at 10:21

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks; fixed r483

Original comment by marc.gravell on 24 Jan 2012 at 11:55