summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
Diffstat (limited to 'decoder')
-rw-r--r--decoder/bottom_up_parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/bottom_up_parser.cc b/decoder/bottom_up_parser.cc
index e3751e23..63939221 100644
--- a/decoder/bottom_up_parser.cc
+++ b/decoder/bottom_up_parser.cc
@@ -221,7 +221,7 @@ void PassiveChart::ApplyUnaryRules(const int i, const int j) {
bool PassiveChart::Parse() {
size_t in_size_2 = input_.size() * input_.size();
forest_->nodes_.reserve(in_size_2 * 2);
- size_t res = min(2000000ul, in_size_2 * 1000);
+ size_t res = min(static_cast<size_t>(2000000), static_cast<size_t>(in_size_2 * 1000));
forest_->edges_.reserve(res);
goal_idx_ = -1;
for (int gi = 0; gi < grammars_.size(); ++gi)