From 36a78b554190e0229afa0321b11609db573f599a Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 5 Aug 2015 20:24:26 +0200 Subject: [PATCH] Remove unsigned/size_t downcast (warning when building on x64) --- glslang/Include/Common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glslang/Include/Common.h b/glslang/Include/Common.h index 4c59a37c..d578719a 100644 --- 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;