~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to drizzled/field/real.cc

  • Committer: Monty Taylor
  • Date: 2009-03-08 23:45:12 UTC
  • mto: (923.2.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 921.
  • Revision ID: mordred@inaugust.com-20090308234512-tqkygxtu1iaig23s
Removed C99 isnan() usage, which allows us to remove the util/math.{cc,h} workarounds. Yay for standards!

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <drizzled/field/real.h>
23
23
#include <drizzled/error.h>
24
24
#include <drizzled/table.h>
25
 
#include CMATH_H
26
 
#include <drizzled/util/math.h>
27
25
 
28
26
#include <limits>
29
27
 
30
28
using namespace std;
31
 
#if defined(CMATH_NAMESPACE)
32
 
using namespace CMATH_NAMESPACE;
33
 
#endif
34
29
 
35
30
/*
36
31
  Floating-point numbers
82
77
  int error= 1;
83
78
  double res= *nr;
84
79
 
85
 
  if (isnan(res))
 
80
  if (res == numeric_limits<double>::quiet_NaN())
86
81
  {
87
82
    res= 0;
88
83
    set_null();