Skip to content

Commit

Permalink
Fix for constant kMaxDoubleSize (from 15 to 16),
Browse files Browse the repository at this point in the history
which is used by method STRING::add_str_double.
  • Loading branch information
pa-hobe committed May 25, 2016
1 parent daa8a53 commit dec38db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ccutil/strngs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ using tesseract::TFile;
// possible length of an int (in 64 bits), being -<20 digits>.
const int kMaxIntSize = 22;
// Size of buffer needed to host the decimal representation of the maximum
// possible length of a %.8g being -0.12345678e+999<nul> = 15.
const int kMaxDoubleSize = 15;
// possible length of a %.8g being -1.2345678e+999<nul> = 16.
const int kMaxDoubleSize = 16;

/**********************************************************************
* STRING_HEADER provides metadata about the allocated buffer,
Expand Down

0 comments on commit dec38db

Please sign in to comment.