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)]; }