[Liblas-commits] hg-main-tree: silence warning about int comparison
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Apr 25 22:12:59 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/663d4a92055e
changeset: 649:663d4a92055e
user: Howard Butler <hobu.inc at gmail.com>
date: Mon Apr 25 21:11:24 2011 -0500
description:
silence warning about int comparison
Subject: hg-main-tree: clean up uninitialized warning
details: http://hg.libpc.orghg-main-tree/rev/bc05bd220320
changeset: 650:bc05bd220320
user: Howard Butler <hobu.inc at gmail.com>
date: Mon Apr 25 21:12:51 2011 -0500
description:
clean up uninitialized warning
diffstat:
src/drivers/oci/Iterator.cpp | 2 +-
src/drivers/oci/Schema.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r a14e91eee15e -r bc05bd220320 src/drivers/oci/Iterator.cpp
--- a/src/drivers/oci/Iterator.cpp Mon Apr 25 14:57:08 2011 -0700
+++ b/src/drivers/oci/Iterator.cpp Mon Apr 25 21:12:51 2011 -0500
@@ -234,7 +234,7 @@
return 0;
}
- if (m_block->num_points > data.getCapacity())
+ if (m_block->num_points > static_cast<boost::int32_t>(data.getCapacity()))
{
throw buffer_too_small("The PointBuffer is too small to contain this block.");
}
diff -r a14e91eee15e -r bc05bd220320 src/drivers/oci/Schema.cpp
--- a/src/drivers/oci/Schema.cpp Mon Apr 25 14:57:08 2011 -0700
+++ b/src/drivers/oci/Schema.cpp Mon Apr 25 21:12:51 2011 -0500
@@ -295,7 +295,7 @@
std::string name;
boost::uint32_t size;
- boost::uint32_t position;
+ boost::uint32_t position(1);
std::string description;
std::string interpretation;
double offset;
More information about the Liblas-commits
mailing list