DerrickBrayanClayton / protobuf-net

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

Protogen: double being represented as int #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
  optional double Foo = 1;

Becomes

  [ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"Foo ", DataFormat = 
ProtoBuf.DataFormat.TwosComplement)]
  [System.ComponentModel.DefaultValue(default(int))]    
  public int Foo
  {
    get { return _ID0EBB; }
    set { _ID0EBB = value; }
  }

Original issue reported on code.google.com by marc.gravell on 21 Nov 2008 at 3:40

GoogleCodeExporter commented 8 years ago

Original comment by marc.gravell on 21 Nov 2008 at 3:57

GoogleCodeExporter commented 8 years ago
The binary descriptor is (validly) omitting the type; I've checked the 
descriptor, 
and the default (the first enum) is TYPE_DOUBLE; in the xslt I've coded as int. 
Simple to change; I juts need to understand why I did it this way... 

Original comment by marc.gravell on 21 Nov 2008 at 4:00

GoogleCodeExporter commented 8 years ago

Original comment by marc.gravell on 26 Nov 2008 at 9:45

GoogleCodeExporter commented 8 years ago
Closed (verified)

Original comment by marc.gravell on 6 Jan 2009 at 7:51