I think the documentation should be changed; I'll fix that. However, negative enum values should probably be discouraged as they will always be encoded as 10 bytes on the wire.
On Mon, Sep 22, 2008 at 3:08 AM, Chris <[EMAIL PROTECTED]> wrote: > > There is a disagreement between the documentation at > http://code.google.com/apis/protocolbuffers/docs/proto.html#enum > and the behavior of proto. > > The documentation states that > "Enumerator constants must be in the range [0, 2147483647]." > > But the protoc program allows negative values. > > I happened to write my Haskell version according the documentation, and > noticed this when the unittest.proto defined SPARSE constants there were > negative. My code rejected this as invalid. > > Should the documentation be changed (and my Haskell code) or the protoc > program? > > Thanks, > Chris > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/protobuf?hl=en -~----------~----~----~----~------~----~------~--~---
