[Liblas-commits] r969 - trunk/src/detail
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Dec 15 10:12:21 EST 2008
Author: mloskot
Date: Mon Dec 15 10:12:21 2008
New Revision: 969
URL: http://liblas.org/changeset/969
Log:
Unified type of count value passed to ST_SetKey/ST_GetKey of libgeotiff API
Modified:
trunk/src/detail/reader10.cpp
trunk/src/detail/reader11.cpp
Modified: trunk/src/detail/reader10.cpp
==============================================================================
--- trunk/src/detail/reader10.cpp (original)
+++ trunk/src/detail/reader10.cpp Mon Dec 15 10:12:21 2008
@@ -263,7 +263,7 @@
std::vector<uint8_t> data = record.GetData();
if (uid == record.GetUserId(true).c_str() && 34735 == record.GetRecordId())
{
- int16_t count = data.size()/sizeof(int16_t);
+ int count = data.size()/sizeof(int16_t);
ST_SetKey(st.get(), record.GetRecordId(), count, STT_SHORT, &(data[0]));
}
@@ -275,7 +275,7 @@
if (uid == record.GetUserId(true).c_str() && 34737 == record.GetRecordId())
{
- uint8_t count = data.size()/sizeof(uint8_t);
+ int count = data.size()/sizeof(uint8_t);
ST_SetKey(st.get(), record.GetRecordId(), count, STT_ASCII, &(data[0]));
}
}
Modified: trunk/src/detail/reader11.cpp
==============================================================================
--- trunk/src/detail/reader11.cpp (original)
+++ trunk/src/detail/reader11.cpp Mon Dec 15 10:12:21 2008
@@ -358,7 +358,7 @@
std::vector<uint8_t> data = record.GetData();
if (uid == record.GetUserId(true).c_str() && 34735 == record.GetRecordId())
{
- int16_t count = data.size()/sizeof(int16_t);
+ int count = data.size()/sizeof(int16_t);
ST_SetKey(st.get(), record.GetRecordId(), count, STT_SHORT, &(data[0]));
}
@@ -370,7 +370,7 @@
if (uid == record.GetUserId(true).c_str() && 34737 == record.GetRecordId())
{
- uint8_t count = data.size()/sizeof(uint8_t);
+ int count = data.size()/sizeof(uint8_t);
ST_SetKey(st.get(), record.GetRecordId(), count, STT_ASCII, &(data[0]));
}
}
More information about the Liblas-commits
mailing list