use correct data type for storing hashes
This commit is contained in:
@ -77,7 +77,7 @@ void CiteMe::add(const std::string &reference)
|
||||
{
|
||||
if (comm->me != 0) return;
|
||||
|
||||
unsigned int crc = get_hash(reference);
|
||||
std::size_t crc = get_hash(reference);
|
||||
if (cs->find(crc) != cs->end()) return;
|
||||
cs->insert(crc);
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ class CiteMe : protected Pointers {
|
||||
int logfile_flag; // determine whether verbose or terse output
|
||||
std::string scrbuffer; // output buffer for screen
|
||||
std::string logbuffer; // output buffer for logfile
|
||||
typedef std::set<unsigned int> citeset;
|
||||
typedef std::set<std::size_t> citeset;
|
||||
citeset *cs; // registered set of publications
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user