~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.cc

  • Committer: Nathan Williams
  • Date: 2009-06-24 18:16:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1082.
  • Revision ID: nathanlws@gmail.com-20090624181614-cju6aaqmn2u5w2nw
Converted all usages of cmax in drizzled/field/ and drizzled/function/ to std::max.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <drizzled/session.h>
27
27
#include <drizzled/protocol.h>
28
28
 
 
29
#include <algorithm>
 
30
 
 
31
using namespace std;
 
32
 
29
33
 
30
34
/****************************************************************************
31
35
  double precision floating point numbers
135
139
#endif
136
140
    doubleget(nr,ptr);
137
141
 
138
 
  uint32_t to_length=cmax(field_length, (uint32_t)DOUBLE_TO_STRING_CONVERSION_BUFFER_SIZE);
 
142
  uint32_t to_length= max(field_length, (uint32_t)DOUBLE_TO_STRING_CONVERSION_BUFFER_SIZE);
139
143
  val_buffer->alloc(to_length);
140
144
  char *to=(char*) val_buffer->ptr();
141
145
  size_t len;