~vcs-imports/tesseract-ocr/trunk

« back to all changes in this revision

Viewing changes to ccutil/memry.cpp

  • Committer: theraysmith
  • Date: 2008-12-30 18:20:15 UTC
  • Revision ID: svn-v4:d0cd1f9f-072b-0410-8dd7-cf729c803f20:trunk:209
Harmless improvements from 3.00 going in to 2.04

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
  }
115
115
  return &string[1];             //string for user
116
116
#else
117
 
  return static_cast<char*>(malloc(count));
 
117
  // Round up the amount allocated to a multiple of 4
 
118
  return static_cast<char*>(malloc((count + 3) & ~3));
118
119
#endif
119
120
}
120
121