[Liblas-commits] hg: shut up some more msvc warnings
liblas-commits at liblas.org
liblas-commits at liblas.org
Thu Jun 23 16:19:13 EDT 2011
details: http://hg.liblas.orghg/rev/9fb301883a31
changeset: 3010:9fb301883a31
user: Howard Butler <hobu.inc at gmail.com>
date: Thu Jun 23 15:19:08 2011 -0500
description:
shut up some more msvc warnings
diffstat:
src/c_api.cpp | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 586d02582ce5 -r 9fb301883a31 src/c_api.cpp
--- a/src/c_api.cpp Thu Jun 23 15:08:18 2011 -0500
+++ b/src/c_api.cpp Thu Jun 23 15:19:08 2011 -0500
@@ -550,7 +550,7 @@
if (d.size() != size)
{
d.resize(size);
- d.assign(0, d.size());
+ d.assign(static_cast<boost::uint8_t>(0), d.size());
}
for (boost::uint16_t i=0; i < size; i++) {
@@ -2418,7 +2418,10 @@
VALIDATE_LAS_POINTER1(hHeader->get(), "LASHeader_SetCompressed", LE_Failure);
try {
- ((liblas::HeaderPtr*) hHeader)->get()->SetCompressed(value);
+ bool v(false);
+ if (value == 0) v = false;
+ else v = true;
+ ((liblas::HeaderPtr*) hHeader)->get()->SetCompressed(v);
}
catch (std::exception const& e) {
LASError_PushError(LE_Failure, e.what(), "LASHeader_SetCompressed");
More information about the Liblas-commits
mailing list