[Liblas-commits] hg: Fixed printf specifiers for size_t which is arch dependant. ...

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Aug 24 19:23:08 EDT 2010


changeset ba1e17197e92 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=ba1e17197e92
summary: Fixed printf specifiers for size_t which is arch dependant. Added FIXME comment around potential bug.

diffstat:

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

diffs (29 lines):

diff -r c66251d34076 -r ba1e17197e92 apps/lasindex_test.cpp
--- a/apps/lasindex_test.cpp	Tue Aug 24 14:05:38 2010 -0500
+++ b/apps/lasindex_test.cpp	Wed Aug 25 00:22:57 2010 +0100
@@ -370,6 +370,7 @@
 				std::istream* idxstrm = NULL;
 				if (idxinfilenme)
 				{
+                    // FIXME: Is this assignment intentional or it should read '==' ? --mloskot
 					if (idxstrm = OpenInput(std::string(idxinfilenme)))
 					{
 						idxreader = new Reader(*idxstrm);
@@ -406,7 +407,7 @@
 										if (FilterResult.size())
 										{
 											// do something with the list of points
-											fprintf(debugger, "Points within filter area %d of %d, %s\n", FilterResult.size(), 
+											fprintf(debugger, "Points within filter area %zu of %d, %s\n", FilterResult.size(), 
 												index.GetPointRecordsCount(), "User-defined gilter bounds");
 										}
 										else
@@ -502,7 +503,7 @@
 											if (FilterResult.size())
 											{
 												// do something with the list of points
-												fprintf(debugger, "Points within filter area %d of %d, %s\n", FilterResult.size(), 
+												fprintf(debugger, "Points within filter area %zu of %d, %s\n", FilterResult.size(), 
 													index.GetPointRecordsCount(), CovgStr);
 											}
 											else


More information about the Liblas-commits mailing list