[Liblas-commits] hg: shut up warning about signed/unsigned comparison

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Jan 11 12:19:24 EST 2011


details:   http://hg.liblas.orghg/rev/d2d8c52cdfcf
changeset: 2726:d2d8c52cdfcf
user:      Howard Butler <hobu.inc at gmail.com>
date:      Tue Jan 11 11:19:16 2011 -0600
description:
shut up warning about signed/unsigned comparison

diffstat:

 apps/laskernel.cpp |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 2d24ed4347d1 -r d2d8c52cdfcf apps/laskernel.cpp
--- a/apps/laskernel.cpp	Tue Jan 11 10:57:19 2011 -0600
+++ b/apps/laskernel.cpp	Tue Jan 11 11:19:16 2011 -0600
@@ -41,7 +41,7 @@
     std::vector<char> data;
     if (infile->good()){
         size = infile->tellg();
-        data.resize(size);
+        data.resize(static_cast<std::vector<char>::size_type>(size));
         // data = new char [size];
         infile->seekg (0, std::ios::beg);
         infile->read (&data.front(), size);


More information about the Liblas-commits mailing list