[Liblas-commits] hg: fix up #214 - WITH_ENDIANAWARE not compiling clean

liblas-commits at liblas.org liblas-commits at liblas.org
Sun Feb 20 15:00:31 EST 2011


details:   http://hg.liblas.orghg/rev/4b8442c275c5
changeset: 2873:4b8442c275c5
user:      Howard Butler <hobu.inc at gmail.com>
date:      Sun Feb 20 14:00:28 2011 -0600
description:
fix up #214 - WITH_ENDIANAWARE not compiling clean

diffstat:

 src/point.cpp |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 6e6b5367e234 -r 4b8442c275c5 src/point.cpp
--- a/src/point.cpp	Sun Feb 20 13:47:59 2011 -0600
+++ b/src/point.cpp	Sun Feb 20 14:00:28 2011 -0600
@@ -560,7 +560,7 @@
     std::vector<boost::uint8_t>::size_type pos = 12;
 
 #ifdef LIBLAS_ENDIAN_AWARE
-    boost::uint16_t output = liblas::detail::bitsToInt<boost::int32_t>(output, m_data, pos);
+    boost::int32_t output = liblas::detail::bitsToInt<boost::int32_t>(output, m_data, pos);
     return output;
 #else
     boost::uint8_t* data = const_cast<boost::uint8_t*>(&m_data[0] + pos);
@@ -788,7 +788,7 @@
     std::vector<boost::uint8_t>::size_type pos = 18;
 
 #ifdef LIBLAS_ENDIAN_AWARE
-    boost::uint16_t output = liblas::detail::bitsToInt<boost::int32_t>(output, m_data, pos);
+    boost::int32_t output = liblas::detail::bitsToInt<boost::int32_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