~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/real.cc

  • Committer: Brian Aker
  • Date: 2008-10-08 03:24:53 UTC
  • Revision ID: brian@gir.tangent.org-20081008032453-ee0n2ukp869ykmqj
Fix call by prepending std::

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
  int error= 1;
73
73
  double res= *nr;
74
74
  
75
 
  if (isnan(res))
 
75
  if (std::isnan(res))
76
76
  {
77
77
    res= 0;
78
78
    set_null();
97
97
    max_value-= 1.0 / log_10[dec];
98
98
 
99
99
    /* Check for infinity so we don't get NaN in calculations */
100
 
    if (!isinf(res))
 
100
    if (!(std::isinf(res)))
101
101
    {
102
102
      double tmp= rint((res - floor(res)) * log_10[dec]) / log_10[dec];
103
103
      res= floor(res) + tmp;