[Liblas-commits] hg: fix up error condition returns for GetRaw
methods
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Jan 19 17:23:23 EST 2011
details: http://hg.liblas.orghg/rev/24b479586b7d
changeset: 2794:24b479586b7d
user: Howard Butler <hobu.inc at gmail.com>
date: Wed Jan 19 16:23:02 2011 -0600
description:
fix up error condition returns for GetRaw methods
diffstat:
src/c_api.cpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (39 lines):
diff -r 5f9b5354c170 -r 24b479586b7d src/c_api.cpp
--- a/src/c_api.cpp Wed Jan 19 08:44:39 2011 -0800
+++ b/src/c_api.cpp Wed Jan 19 16:23:02 2011 -0600
@@ -491,9 +491,9 @@
LAS_DLL boost::int32_t LASPoint_GetRawX(const LASPointH hPoint) {
- VALIDATE_LAS_POINTER1(hPoint, "LASPoint_GetRawX", 0.0);
+ VALIDATE_LAS_POINTER1(hPoint, "LASPoint_GetRawX", 0);
- boost::int32_t value = ((liblas::Point*) hPoint)->GetRawX();
+ long value = static_cast<long>(((liblas::Point*) hPoint)->GetRawX());
return value;
}
@@ -539,9 +539,9 @@
LAS_DLL boost::int32_t LASPoint_GetRawY(const LASPointH hPoint) {
- VALIDATE_LAS_POINTER1(hPoint, "LASPoint_GetRawY", 0.0);
+ VALIDATE_LAS_POINTER1(hPoint, "LASPoint_GetRawY", 0);
- boost::int32_t value = ((liblas::Point*) hPoint)->GetRawY();
+ long value = static_cast<long>(((liblas::Point*) hPoint)->GetRawY());
return value;
}
@@ -586,9 +586,9 @@
LAS_DLL boost::int32_t LASPoint_GetRawZ(const LASPointH hPoint) {
- VALIDATE_LAS_POINTER1(hPoint, "LASPoint_GetRawZ", 0.0);
+ VALIDATE_LAS_POINTER1(hPoint, "LASPoint_GetRawZ", 0);
- boost::int32_t value = ((liblas::Point*) hPoint)->GetRawZ();
+ long value = static_cast<long>(((liblas::Point*) hPoint)->GetRawZ());
return value;
}
More information about the Liblas-commits
mailing list