Hi,

I'm seeing a strange behaviour of the protobuf library in the
following situation:

I have a message which contains an optional field uint32
'uploadLimit'.
I have created and serialized a message containing the value 0 in this
field.

When reading this message in Python and C#, I have the value 0 stored
in the field, as expected.

When reading this message in C++, however, has_uploadlimit() returns
0, instead of 1. uploadlimit() itself returns also 0, but I'm not sure
whether I can count on it, since it is not set.

Is this really unexpected? Have I misunderstood the usage of the has_
method?

Jon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to