1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2024-12-22 09:38:56 +08:00

Unsigned warning fix in public/tier1/byteswap.h

This commit is contained in:
Nicholas Hastings 2015-04-23 21:20:35 -04:00
parent 28b43b0624
commit c6a0af0f3c

View File

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