diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-09 23:23:11 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-09 23:23:11 -0500 |
commit | b749a9ce861a1f800a0837a90e1376e4e5fc6739 (patch) | |
tree | 9cd63dded2a57021fbd912f1fa59116812103868 /decoder | |
parent | 75310799a6ee82b742ba69abab951a74fd0d19fc (diff) |
fix compile error on certain gcc's
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/bottom_up_parser.cc | 2 |
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) |