[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27624] trunk/blender/intern/audaspace/ intern/AUD_NULLDevice.cpp: Replacing NAN with C++ limits version, hope that works for MSVC...
Joerg Mueller
nexyon at gmail.com
Sat Mar 20 17:28:51 CET 2010
Revision: 27624
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27624
Author: nexyon
Date: 2010-03-20 17:28:51 +0100 (Sat, 20 Mar 2010)
Log Message:
-----------
Replacing NAN with C++ limits version, hope that works for MSVC...
Modified Paths:
--------------
trunk/blender/intern/audaspace/intern/AUD_NULLDevice.cpp
Modified: trunk/blender/intern/audaspace/intern/AUD_NULLDevice.cpp
===================================================================
--- trunk/blender/intern/audaspace/intern/AUD_NULLDevice.cpp 2010-03-20 16:25:34 UTC (rev 27623)
+++ trunk/blender/intern/audaspace/intern/AUD_NULLDevice.cpp 2010-03-20 16:28:51 UTC (rev 27624)
@@ -23,7 +23,7 @@
* ***** END LGPL LICENSE BLOCK *****
*/
-#include <cmath>
+#include <limits>
#include "AUD_NULLDevice.h"
#include "AUD_IReader.h"
@@ -78,7 +78,7 @@
float AUD_NULLDevice::getPosition(AUD_Handle* handle)
{
- return NAN;
+ return std::numeric_limits<float>::quiet_NaN();
}
AUD_Status AUD_NULLDevice::getStatus(AUD_Handle* handle)
More information about the Bf-blender-cvs
mailing list