~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/dtoa.cc

  • Committer: rm
  • Date: 2009-08-05 05:08:32 UTC
  • mto: (1093.1.48 captain)
  • mto: This revision was merged to the branch mainline in revision 1112.
  • Revision ID: rm@ralph.local-20090805050832-z7thntzp2rg0aslk
dtoa takes float/double precision, double case was always passing buffer size

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
  if (x < 0.)
214
214
    width--;
215
215
 
216
 
  res= dtoa(x, 4, type == MY_GCVT_ARG_DOUBLE ? width : min(width, FLT_DIG),
217
 
            &decpt, &sign, &end);
 
216
  res= dtoa(x, 4, type == MY_GCVT_ARG_DOUBLE ? min(width, DBL_DIG) : 
 
217
            min(width, FLT_DIG), &decpt, &sign, &end);
218
218
 
219
219
  if (decpt == DTOA_OVERFLOW)
220
220
  {