Skip to content

Commit 01f9a7f

Browse files
stweilzdenop
authored andcommitted
Clean use of double / float (#1323)
The variable 'diff' gets a double value and is compared with a double value, so it should be double, too. Signed-off-by: Stefan Weil <[email protected]>
1 parent 43f34f5 commit 01f9a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ccmain/applybox.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ void Tesseract::PreenXHeights(BLOCK_LIST *block_list) {
200200
ROW_IT r_it(block->row_list());
201201
for (r_it.mark_cycle_pt(); !r_it.cycled_list(); r_it.forward ()) {
202202
ROW* row = r_it.data();
203-
float diff = fabs(row->x_height() - median_xheight);
203+
double diff = fabs(row->x_height() - median_xheight);
204204
if (diff > max_deviation) {
205205
if (applybox_debug) {
206206
tprintf("row xheight=%g, but median xheight = %g\n",

0 commit comments

Comments
 (0)