/[Apache-SVN]
ViewVC logotype

Revision 1294928


Jump to revision: Previous Next
Author: dcreager
Date: Wed Feb 29 01:24:29 2012 UTC (12 years, 1 month ago)
Changed paths: 3
Log Message:
AVRO-1031. C: avro_value_cmp doesn't necessarily return {-1,0,1}.

The avro_value_cmp function uses memcmp under the covers (at least for
comparing bytes values), and so it doesn't necessarily return only -1,
0, and 1 as results.  Rather, any negative value can be used for the
less-than case, and any positive value for the greater-than case.  This
patch updates our unit tests to not assume too much about the return
value.


Changed paths

Path Details
Directoryavro/trunk/CHANGES.txt modified , text changed
Directoryavro/trunk/lang/c/tests/test_avro_968.c modified , text changed
Directoryavro/trunk/lang/c/tests/test_avro_values.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26