DRILL-1222: C++ Client. Fix DRILL-1144 compilation on Mac OS
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/90cd1949 Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/90cd1949 Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/90cd1949 Branch: refs/heads/master Commit: 90cd1949274aad87626083b835fc966b7f422777 Parents: 323084b Author: Xiao Meng <[email protected]> Authored: Tue Jul 29 15:10:10 2014 -0700 Committer: Jacques Nadeau <[email protected]> Committed: Mon Aug 11 21:32:48 2014 -0700 ---------------------------------------------------------------------- contrib/native/client/src/include/drill/recordBatch.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/90cd1949/contrib/native/client/src/include/drill/recordBatch.hpp ---------------------------------------------------------------------- diff --git a/contrib/native/client/src/include/drill/recordBatch.hpp b/contrib/native/client/src/include/drill/recordBatch.hpp index 8d7942a..d4735a9 100644 --- a/contrib/native/client/src/include/drill/recordBatch.hpp +++ b/contrib/native/client/src/include/drill/recordBatch.hpp @@ -302,7 +302,7 @@ template <int DECIMAL_DIGITS, int WIDTH_IN_BYTES, bool IS_SPARSE, int MAX_PRECIS void getValueAt(size_t index, char* buf, size_t nChars) const { const DecimalValue& val = this->get(index); - std::string& str = boost::lexical_cast<std::string>(val.m_unscaledValue); + std::string str = boost::lexical_cast<std::string>(val.m_unscaledValue); if (str[0] == '-') { str = str.substr(1); while (str.length() < m_scale) {
