pixelwriter: fix undefined behaviour
This commit is contained in:
parent
2c179d0c84
commit
2d11c8bbf5
1 changed files with 1 additions and 1 deletions
|
@ -507,7 +507,7 @@ FORCEINLINE_PIXEL void CPixelWriter::WritePixelNoAdvance( int r, int g, int b, i
|
||||||
{
|
{
|
||||||
if ( IsPC() || !IsX360() )
|
if ( IsPC() || !IsX360() )
|
||||||
{
|
{
|
||||||
((unsigned short *)m_pBits)[0] = (unsigned short)((val & 0xffff));
|
((unsigned char *)m_pBits)[0] = (unsigned char)((val & 0xffff));
|
||||||
m_pBits[2] = (unsigned char)((val >> 16) & 0xff);
|
m_pBits[2] = (unsigned char)((val >> 16) & 0xff);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue