From 8cad73a10942feadbe14d549da03888b2c4ce55b Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Sat, 20 Nov 2010 00:33:32 -0800
Subject: [PATCH] WRG: fix warning in the PointSetFileReader

---
 Code/IO/otbPointSetFileReader.txx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Code/IO/otbPointSetFileReader.txx b/Code/IO/otbPointSetFileReader.txx
index 8f7d9a98d8..88382a53e9 100644
--- a/Code/IO/otbPointSetFileReader.txx
+++ b/Code/IO/otbPointSetFileReader.txx
@@ -134,7 +134,7 @@ void PointSetFileReader<TOutputPointSet>
   if (PointType::PointDimension == 2)
     {
     LASPointH pt = LASPoint_Create();
-    while (pt = LASReader_GetNextPoint(reader))
+    while ((pt = LASReader_GetNextPoint(reader)))
       {
       
       PointType point;
@@ -153,7 +153,7 @@ void PointSetFileReader<TOutputPointSet>
   else if (PointType::PointDimension == 3)
     {
     LASPointH p = LASPoint_Create();
-    while (p = LASReader_GetNextPoint(reader))
+    while ((p = LASReader_GetNextPoint(reader)))
       {
       //liblas::Point const& p = reader.GetPoint();
 
-- 
GitLab