duckAsteroid / protobuf-dt

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

Syntax error when specifying default values larger than 2147483647. #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Specifying a default value larger than 2147483647 (INT_MAX) results in the 
value being flagged as an error, even if it is valid for the type. For example, 
each of these is flagged as an error despite being valid:

message Test {
  optional int64 a = 1 [default = 2147483648];
  optional uint32 b = 2 [default = 2147483648];
  optional uint64 c = 3 [default = 2147483648];
  optional sint64 d = 4 [default = 2147483648];
  optional fixed32 e = 5 [default = 2147483648];
  optional fixed64 f = 6 [default = 2147483648];
}

I'm using version 34dac6f2288c5b7b28c2461d4a6d8ae098ab974c

Original issue reported on code.google.com by b...@eater.net on 4 Sep 2011 at 4:12

GoogleCodeExporter commented 9 years ago

Original comment by alr...@google.com on 8 Sep 2011 at 9:10

GoogleCodeExporter commented 9 years ago
r26c3a4fce05f

Original comment by alr...@google.com on 8 Sep 2011 at 9:32