summaryrefslogtreecommitdiff
blob: 11254904e9450b19e26ee956eae0af76feaa9da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: depthimage_to_laserscan-1.0.7/src/DepthImageToLaserScan.cpp
===================================================================
--- depthimage_to_laserscan-1.0.7.orig/src/DepthImageToLaserScan.cpp
+++ depthimage_to_laserscan-1.0.7/src/DepthImageToLaserScan.cpp
@@ -59,7 +59,7 @@ bool DepthImageToLaserScan::use_point(co
   
   // Infs are preferable over NaNs (more information)
   if(!new_finite && !old_finite){ // Both are not NaN or Inf.
-    if(!isnan(new_value)){ // new is not NaN, so use it's +-Inf value.
+    if(!std::isnan(new_value)){ // new is not NaN, so use it's +-Inf value.
       return true;
     }
     return false; // Do not replace old_value