Skip to content

Commit dec38db

Browse files
committed
Fix for constant kMaxDoubleSize (from 15 to 16),
which is used by method STRING::add_str_double.
1 parent daa8a53 commit dec38db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ccutil/strngs.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ using tesseract::TFile;
3232
// possible length of an int (in 64 bits), being -<20 digits>.
3333
const int kMaxIntSize = 22;
3434
// Size of buffer needed to host the decimal representation of the maximum
35-
// possible length of a %.8g being -0.12345678e+999<nul> = 15.
36-
const int kMaxDoubleSize = 15;
35+
// possible length of a %.8g being -1.2345678e+999<nul> = 16.
36+
const int kMaxDoubleSize = 16;
3737

3838
/**********************************************************************
3939
* STRING_HEADER provides metadata about the allocated buffer,

0 commit comments

Comments
 (0)