~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.cc

Merge Nathan

Show diffs side-by-side

added added

removed removed

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