Skip to content

Commit

Permalink
Clang tidy changes from sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Ray Smith committed Sep 8, 2017
1 parent a18620c commit a2a72d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ccutil/unicharcompress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
///////////////////////////////////////////////////////////////////////

#include "unicharcompress.h"
#include <memory>
#include <algorithm>
#include <memory>
#include "tprintf.h"

namespace tesseract {
Expand Down
4 changes: 2 additions & 2 deletions classify/intmatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -846,9 +846,9 @@ int IntegerMatcher::UpdateTablesForFeature(
M3 = ~M3;
A3 >>= mult_trunc_shift_bits_;
M3 >>= mult_trunc_shift_bits_;
if ((unsigned)A3 > evidence_mult_mask_)
if (static_cast<uint32_t>(A3) > evidence_mult_mask_)
A3 = evidence_mult_mask_;
if ((unsigned)M3 > evidence_mult_mask_)
if (static_cast<uint32_t>(M3) > evidence_mult_mask_)
M3 = evidence_mult_mask_;

A4 = (A3 * A3) + (M3 * M3);
Expand Down
3 changes: 2 additions & 1 deletion training/lstmtraining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ INT_PARAM_FLAG(max_iterations, 0, "If set, exit after this many iterations");
STRING_PARAM_FLAG(traineddata, "",
"Combined Dawgs/Unicharset/Recoder for language model");
STRING_PARAM_FLAG(old_traineddata, "",
"Previous traineddata arg when changing the character set");
"When changing the character set, this specifies the old"
" character set that is to be replaced");

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

0 comments on commit a2a72d7

Please sign in to comment.