projects
/
platform
/
upstream
/
glslang.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0718e45
)
Remove unsigned/size_t downcast (warning when building on x64)
author
baldurk
<baldurk@baldurk.org>
Wed, 5 Aug 2015 18:24:26 +0000
(20:24 +0200)
committer
baldurk
<baldurk@baldurk.org>
Wed, 5 Aug 2015 18:25:55 +0000
(20:25 +0200)
glslang/Include/Common.h
patch
|
blob
|
history
diff --git
a/glslang/Include/Common.h
b/glslang/Include/Common.h
index
4c59a37
..
d578719
100644
(file)
--- a/
glslang/Include/Common.h
+++ b/
glslang/Include/Common.h
@@
-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;