Skip to content

Commit a2a72d7

Browse files
author
Ray Smith
committed
Clang tidy changes from sync
1 parent a18620c commit a2a72d7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ccutil/unicharcompress.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
///////////////////////////////////////////////////////////////////////
2121

2222
#include "unicharcompress.h"
23-
#include <memory>
2423
#include <algorithm>
24+
#include <memory>
2525
#include "tprintf.h"
2626

2727
namespace tesseract {

classify/intmatcher.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -846,9 +846,9 @@ int IntegerMatcher::UpdateTablesForFeature(
846846
M3 = ~M3;
847847
A3 >>= mult_trunc_shift_bits_;
848848
M3 >>= mult_trunc_shift_bits_;
849-
if ((unsigned)A3 > evidence_mult_mask_)
849+
if (static_cast<uint32_t>(A3) > evidence_mult_mask_)
850850
A3 = evidence_mult_mask_;
851-
if ((unsigned)M3 > evidence_mult_mask_)
851+
if (static_cast<uint32_t>(M3) > evidence_mult_mask_)
852852
M3 = evidence_mult_mask_;
853853

854854
A4 = (A3 * A3) + (M3 * M3);

training/lstmtraining.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ INT_PARAM_FLAG(max_iterations, 0, "If set, exit after this many iterations");
5858
STRING_PARAM_FLAG(traineddata, "",
5959
"Combined Dawgs/Unicharset/Recoder for language model");
6060
STRING_PARAM_FLAG(old_traineddata, "",
61-
"Previous traineddata arg when changing the character set");
61+
"When changing the character set, this specifies the old"
62+
" character set that is to be replaced");
6263

6364
// Number of training images to train between calls to MaintainCheckpoints.
6465
const int kNumPagesPerBatch = 100;

0 commit comments

Comments
 (0)