use correct data type for storing hashes

This commit is contained in:
Axel Kohlmeyer
2021-02-26 09:49:06 -05:00
parent 37086c391f
commit e7c829e31e
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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
};
}