Skip to content

Commit

Permalink
fixed compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bbuchfink committed Jul 12, 2016
1 parent 32e547e commit 827adcd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/data/frequent_seeds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ struct Frequent_seeds::Build_context
}

const size_t ht_size = std::max((size_t)(buf.size() * hash_table_factor), buf.size() + 1);
frequent_seeds.tables_[sid][seedp] = PHash_set(ht_size);
PHash_set hash_set(ht_size);

for (vector<uint32_t>::const_iterator i = buf.begin(); i != buf.end(); ++i)
frequent_seeds.tables_[sid][seedp].insert(*i);
hash_set.insert(*i);

frequent_seeds.tables_[sid][seedp] = hash_set;
counts[seedp] = (unsigned)n;
}
const sorted_list &ref_idx;
Expand Down
1 change: 1 addition & 0 deletions src/util/hash_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR P
#include <stdint.h>
#include <memory>
#include <algorithm>
#include <string.h>
#include "hash_function.h"

using std::auto_ptr;
Expand Down
1 change: 1 addition & 0 deletions src/util/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR P
#include <iostream>
#include <string.h>
#include <sys/stat.h>
#include <math.h>
#include "../basic/const.h"
#include "../basic/seed.h"
#include "../basic/value.h"
Expand Down

0 comments on commit 827adcd

Please sign in to comment.