From c6a0af0f3c280da902d2acb7abd955efe582f157 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Thu, 23 Apr 2015 21:20:35 -0400 Subject: [PATCH] Unsigned warning fix in public/tier1/byteswap.h --- public/tier1/byteswap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/tier1/byteswap.h b/public/tier1/byteswap.h index c7bc3c87..4bda2b26 100644 --- a/public/tier1/byteswap.h +++ b/public/tier1/byteswap.h @@ -234,7 +234,7 @@ private: Assert( "Invalid size in CByteswap::LowLevelByteSwap" && 0 ); } #else - for( int i = 0; i < sizeof(T); i++ ) + for( size_t i = 0; i < sizeof(T); i++ ) { ((unsigned char* )&temp)[i] = ((unsigned char*)input)[sizeof(T)-(i+1)]; }