summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-03-09 23:23:11 -0500
committerChris Dyer <cdyer@cs.cmu.edu>2011-03-09 23:23:11 -0500
commit0acaff8e91fbec0699da8c4a84fdba8c4be9c229 (patch)
treebe2a5a34706644e9d61d359604d692d790518dcf /decoder
parent6c923d45f2aaf960806429d36ca58a41b3a39740 (diff)
fix compile error on certain gcc's
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)