Author: thiru
Date: Tue Jul 15 18:32:47 2014
New Revision: 1610798
URL: http://svn.apache.org/r1610798
Log:
C++ doesn't build in Ubuntu
Modified:
avro/trunk/CHANGES.txt
avro/trunk/lang/c++/api/GenericDatum.hh
avro/trunk/lang/c++/impl/Compiler.cc
Modified: avro/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=1610798&r1=1610797&r2=1610798&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Tue Jul 15 18:32:47 2014
@@ -115,6 +115,8 @@ Trunk (not yet released)
AVRO-1448. Python3: Fix setup.py installation through PyPI. (taton)
+ AVRO-1540. C++ doesn't build in Ubuntu. (thiru)
+
Avro 1.7.6 (15 January 2014)
NEW FEATURES
Modified: avro/trunk/lang/c++/api/GenericDatum.hh
URL:
http://svn.apache.org/viewvc/avro/trunk/lang/c%2B%2B/api/GenericDatum.hh?rev=1610798&r1=1610797&r2=1610798&view=diff
==============================================================================
--- avro/trunk/lang/c++/api/GenericDatum.hh (original)
+++ avro/trunk/lang/c++/api/GenericDatum.hh Tue Jul 15 18:32:47 2014
@@ -19,6 +19,7 @@
#ifndef avro_GenericDatum_hh__
#define avro_GenericDatum_hh__
+#include <stdint.h>
#include <vector>
#include <map>
#include <string>
Modified: avro/trunk/lang/c++/impl/Compiler.cc
URL:
http://svn.apache.org/viewvc/avro/trunk/lang/c%2B%2B/impl/Compiler.cc?rev=1610798&r1=1610797&r2=1610798&view=diff
==============================================================================
--- avro/trunk/lang/c++/impl/Compiler.cc (original)
+++ avro/trunk/lang/c++/impl/Compiler.cc Tue Jul 15 18:32:47 2014
@@ -298,7 +298,7 @@ static GenericDatum makeGenericDatum(Nod
name = it->first;
e2 = it->second;
}
- for (int i = 0; i < n->leaves(); ++i) {
+ for (size_t i = 0; i < n->leaves(); ++i) {
const NodePtr& b = n->leafAt(i);
if (nameof(b) == name) {
result.selectBranch(i);