Skip to content
Snippets Groups Projects
Commit 50a40f4e authored by John Kessenich's avatar John Kessenich
Browse files

Merge pull request #51 from baldurk/size-t-int-warning-fixes

Remove unsigned/size_t downcast (warning when building on x64)
parents 0718e45c 36a78b55
No related branches found
No related tags found
No related merge requests found
......@@ -103,9 +103,9 @@ namespace std {
const unsigned _FNV_offset_basis = 2166136261U;
const unsigned _FNV_prime = 16777619U;
unsigned _Val = _FNV_offset_basis;
unsigned _Count = s.size();
size_t _Count = s.size();
const char* _First = s.c_str();
for (unsigned _Next = 0; _Next < _Count; ++_Next)
for (size_t _Next = 0; _Next < _Count; ++_Next)
{
_Val ^= (unsigned)_First[_Next];
_Val *= _FNV_prime;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment