[Liblas-commits] hg: more fixes for #214, LIBLAS_ENDIAN_AWARE does not compile clean

liblas-commits at liblas.org liblas-commits at liblas.org
Mon Apr 4 11:03:52 EDT 2011


details:   http://hg.liblas.orghg/rev/04fbf3a53472
changeset: 2915:04fbf3a53472
user:      Howard Butler <hobu.inc at gmail.com>
date:      Mon Apr 04 10:03:46 2011 -0500
description:
more 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 9ee1a064acb6 -r 04fbf3a53472 src/point.cpp
--- a/src/point.cpp	Mon Apr 04 09:35:37 2011 -0500
+++ b/src/point.cpp	Mon Apr 04 10:03:46 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