~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/dtoa.cc

  • Committer: Brian Aker
  • Date: 2009-03-12 14:38:12 UTC
  • mfrom: (910.4.20 sparc)
  • Revision ID: brian@tangent.org-20090312143812-g02zsr6krx54nxjp
Merge from Stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
697
697
static char *dtoa_alloc(int i, Stack_alloc *alloc)
698
698
{
699
699
  char *rv;
700
 
  int aligned_size= (i + sizeof(ULong) - 1) / sizeof(ULong) * sizeof(ULong);
 
700
  int aligned_size= (i + sizeof(double) - 1) / sizeof(double) * sizeof(double);
701
701
  if (alloc->free + aligned_size <= alloc->end)
702
702
  {
703
703
    rv= alloc->free;