[Liblas-commits] r1181 - trunk/apps
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Apr 6 12:47:39 EDT 2009
Author: hobu
Date: Mon Apr 6 12:47:38 2009
New Revision: 1181
URL: http://liblas.org/changeset/1181
Log:
#123 remove the silly log_xor macro
Modified:
trunk/apps/txt2las.c
Modified: trunk/apps/txt2las.c
==============================================================================
--- trunk/apps/txt2las.c (original)
+++ trunk/apps/txt2las.c Mon Apr 6 12:47:38 2009
@@ -710,13 +710,10 @@
xyz_max_dequant[i] = xyz_offset[i] + (xyz_max_quant[i] * xyz_scale[i]);
}
-
-#define log_xor !=0==!
-
/* make sure there is not sign flip */
for (i = 0; i < 3; i++)
{
- if ((xyz_min[i] > 0) log_xor (xyz_min_dequant[i] > 0))
+ if ((xyz_min[i] > 0) != (xyz_min_dequant[i] > 0))
{
fprintf(stderr,
"WARNING: quantization sign flip for %s min coord %g -> %g. use offset or scale up\n",
@@ -725,7 +722,7 @@
xyz_min_dequant[i]
);
}
- if ((xyz_max[i] > 0) log_xor (xyz_max_dequant[i] > 0))
+ if ((xyz_max[i] > 0) != (xyz_max_dequant[i] > 0))
{
fprintf(stderr,
"WARNING: quantization sign flip for %s max coord %g -> %g. use offset or scale up\n",
@@ -736,8 +733,6 @@
}
}
-#undef log_xor
-
/* populate the header */
header = LASHeader_Create();
More information about the Liblas-commits
mailing list