зеркало из https://github.com/stride3d/xkslang.git
Remove unsigned/size_t downcast (warning when building on x64)
This commit is contained in:
Родитель
0718e45c24
Коммит
36a78b5541
|
@ -103,9 +103,9 @@ namespace std {
|
||||||
const unsigned _FNV_offset_basis = 2166136261U;
|
const unsigned _FNV_offset_basis = 2166136261U;
|
||||||
const unsigned _FNV_prime = 16777619U;
|
const unsigned _FNV_prime = 16777619U;
|
||||||
unsigned _Val = _FNV_offset_basis;
|
unsigned _Val = _FNV_offset_basis;
|
||||||
unsigned _Count = s.size();
|
size_t _Count = s.size();
|
||||||
const char* _First = s.c_str();
|
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 ^= (unsigned)_First[_Next];
|
||||||
_Val *= _FNV_prime;
|
_Val *= _FNV_prime;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче