[Liblas-commits] hg: cast the record length to uint16_t now that we have effectiv...

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Dec 15 13:07:34 EST 2010


changeset da041c95a5c4 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=da041c95a5c4
summary: cast the record length to uint16_t now that we have effectively trapped if it overflows anyway

diffstat:

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

diffs (12 lines):

diff -r a878e73cb469 -r da041c95a5c4 src/lasspatialreference.cpp
--- a/src/lasspatialreference.cpp	Wed Dec 15 12:04:37 2010 -0600
+++ b/src/lasspatialreference.cpp	Wed Dec 15 12:07:28 2010 -0600
@@ -424,7 +424,7 @@
         }
 
 
-        wkt_record.SetRecordLength( data.size() );
+        wkt_record.SetRecordLength( static_cast<boost::uint16_t>(data.size()) );
         wkt_record.SetData(data);
 
         // not to speak of this additional copy!


More information about the Liblas-commits mailing list