mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-22 17:47:38 +08:00
Unsigned warning fix in public/tier1/byteswap.h
This commit is contained in:
parent
28b43b0624
commit
c6a0af0f3c
@ -234,7 +234,7 @@ private:
|
|||||||
Assert( "Invalid size in CByteswap::LowLevelByteSwap" && 0 );
|
Assert( "Invalid size in CByteswap::LowLevelByteSwap" && 0 );
|
||||||
}
|
}
|
||||||
#else
|
#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)];
|
((unsigned char* )&temp)[i] = ((unsigned char*)input)[sizeof(T)-(i+1)];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user