~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.cc

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
  double precision floating point numbers
31
31
****************************************************************************/
32
32
 
33
 
int Field_double::store(const char *from,uint len, const CHARSET_INFO * const cs)
 
33
int Field_double::store(const char *from,uint32_t len, const CHARSET_INFO * const cs)
34
34
{
35
35
  int error;
36
36
  char *end;
95
95
 
96
96
  if (!not_fixed)
97
97
  {
98
 
    uint order= field_length - dec;
99
 
    uint step= array_elements(log_10) - 1;
 
98
    uint32_t order= field_length - dec;
 
99
    uint32_t step= array_elements(log_10) - 1;
100
100
    max_value= 1.0;
101
101
    for (; order > step; order-= step)
102
102
      max_value*= log_10[step];
210
210
#endif
211
211
    doubleget(nr,ptr);
212
212
 
213
 
  uint to_length=cmax(field_length, (uint32_t)DOUBLE_TO_STRING_CONVERSION_BUFFER_SIZE);
 
213
  uint32_t to_length=cmax(field_length, (uint32_t)DOUBLE_TO_STRING_CONVERSION_BUFFER_SIZE);
214
214
  val_buffer->alloc(to_length);
215
215
  char *to=(char*) val_buffer->ptr();
216
216
  size_t len;
254
254
 
255
255
/* The following should work for IEEE */
256
256
 
257
 
void Field_double::sort_string(unsigned char *to,uint length __attribute__((unused)))
 
257
void Field_double::sort_string(unsigned char *to,uint32_t length __attribute__((unused)))
258
258
{
259
259
  double nr;
260
260
#ifdef WORDS_BIGENDIAN