Skip to content

Commit

Permalink
Clean use of double / float (#1323)
Browse files Browse the repository at this point in the history
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 <sw@weilnetz.de>
  • Loading branch information
stweil authored and zdenop committed Feb 18, 2018
1 parent 43f34f5 commit 01f9a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccmain/applybox.cpp
Expand Up @@ -200,7 +200,7 @@ void Tesseract::PreenXHeights(BLOCK_LIST *block_list) {
ROW_IT r_it(block->row_list());
for (r_it.mark_cycle_pt(); !r_it.cycled_list(); r_it.forward ()) {
ROW* row = r_it.data();
float diff = fabs(row->x_height() - median_xheight);
double diff = fabs(row->x_height() - median_xheight);
if (diff > max_deviation) {
if (applybox_debug) {
tprintf("row xheight=%g, but median xheight = %g\n",
Expand Down

0 comments on commit 01f9a7f

Please sign in to comment.