Re: Message::ByteSize() wrong

2009-10-07 Thread Brenden Matthews
Here you go...attached is an example that fails quite reliably (for me). Compile like so: mkdir build cd build cmake ../ make ./test-pb On Wed, Oct 7, 2009 at 4:49 PM, Kenton Varda ken...@google.com wrote: ByteSize() definitely returns the right value -- if it didn't, tons of stuff would be

Re: Message::ByteSize() wrong

2009-10-07 Thread Kenton Varda
This example is too big for me to debug. Can't you reproduce this with a 10-line program + proto file? On Wed, Oct 7, 2009 at 6:11 PM, Brenden Matthews bren...@diddyinc.comwrote: Oops, had some bad math in that last sample. This is more correct (but still fails). On Wed, Oct 7, 2009 at

Re: Message::ByteSize() wrong

2009-10-07 Thread Brenden Matthews
On Wed, Oct 7, 2009 at 6:48 PM, Henner Zeller h.zel...@acm.org wrote: Still haven't run it (I only seem to have a too old cmake; a simple Makefile with a .proto and .cc file showing the problem would be better. Please strip down the example if someone should help debugging it ;) ) Anyway,