Commit 775be357938ee054727b56a6aae1e0bc3dcc5e75

  • avatar
  • Flavio Castelli <fcastelli @nov…ll.com>
  • Mon Aug 09 17:36:58 CEST 2010
Fixed compilation on Visual Studio 2010 (and probably also 2008/2005).
Patch provided by Toni Jovanoski.
  
158158 str = d->sanitizeString( v.toString() ).toUtf8();
159159 } else if (( v.type() == QVariant::Double) || (v.type() == QMetaType::Float)) { // a double or a float?
160160 const double value = v.toDouble();
161#ifdef _WIN32
162 const bool special = _isnan(value) || !_finite(value);
163#else
161164 const bool special = std::isnan(value) || std::isinf(value);
165#endif
162166 if (special) {
163167 if (specialNumbersAllowed()) {
168#ifdef _WIN32
169 if (_isnan(value)) {
170#else
164171 if (std::isnan(value)) {
172#endif
165173 str += "NaN";
166174 } else {
167175 if (value<0) {