[Liblas-commits] hg-1.6: fixes for #214,
LIBLAS_ENDIAN_AWARE does not compile clean
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Apr 4 11:05:58 EDT 2011
details: http://hg.liblas.orghg-1.6/rev/70e3e9f43f79
changeset: 2861:70e3e9f43f79
user: Howard Butler <hobu.inc at gmail.com>
date: Mon Apr 04 10:05:52 2011 -0500
description:
fixes for #214, LIBLAS_ENDIAN_AWARE does not compile clean
diffstat:
src/point.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r a02168a355cb -r 70e3e9f43f79 src/point.cpp
--- a/src/point.cpp Mon Apr 04 09:35:37 2011 -0500
+++ b/src/point.cpp Mon Apr 04 10:05:52 2011 -0500
@@ -592,7 +592,7 @@
std::vector<boost::uint8_t>::size_type pos = 12;
#ifdef LIBLAS_ENDIAN_AWARE
- boost::int32_t output = liblas::detail::bitsToInt<boost::int32_t>(output, m_data, pos);
+ boost::uint16_t output = liblas::detail::bitsToInt<boost::uint16_t>(output, m_data, pos);
return output
#else
boost::uint8_t* data = const_cast<boost::uint8_t*>(&m_data[0] + pos);
@@ -820,7 +820,7 @@
std::vector<boost::uint8_t>::size_type pos = 18;
#ifdef LIBLAS_ENDIAN_AWARE
- boost::int32_t output = liblas::detail::bitsToInt<boost::int32_t>(output, m_data, pos);
+ boost::uint16_t output = liblas::detail::bitsToInt<boost::uint16_t>(output, m_data, pos);
return output
#else
boost::uint8_t* data = const_cast<boost::uint8_t*>(&m_data[0] + pos);
More information about the Liblas-commits
mailing list