Fix compiler errors for more strict compilers

This commit is contained in:
Kenneth Heafield 2012-10-16 12:58:38 -04:00
parent 96bc9d05dc
commit b9d228b281
2 changed files with 4 additions and 4 deletions

View File

@ -33,9 +33,9 @@ template <class Model> void Fill<Model>::Add(const TargetPhraseCollection &targe
}
std::vector<lm::WordIndex> words;
for (TargetPhraseCollection::const_iterator i(targets.begin()); i != targets.end(); ++i) {
for (TargetPhraseCollection::const_iterator p(targets.begin()); p != targets.end(); ++p) {
words.clear();
const TargetPhrase &phrase = **i;
const TargetPhrase &phrase = **p;
const AlignmentInfo::NonTermIndexMap &align = phrase.GetAlignmentInfo().GetNonTermIndexMap();
search::PartialEdge edge(edges_.AllocateEdge(nts.size()));

View File

@ -16,7 +16,7 @@ class Pool {
~Pool();
void *Allocate(size_t size) {
void *Allocate(std::size_t size) {
void *ret = current_;
current_ += size;
if (current_ < current_end_) {
@ -29,7 +29,7 @@ class Pool {
void FreeAll();
private:
void *More(size_t size);
void *More(std::size_t size);
std::vector<void *> free_list_;