mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:41:41 +00:00
d3dxof: Remove useless casts.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a777fd85cb
commit
9781b5433c
|
@ -1208,13 +1208,13 @@ static BOOL parse_object_members_list(parse_buffer * buf)
|
|||
return FALSE;
|
||||
if (pt->members[i].type == TOKEN_WORD)
|
||||
{
|
||||
*(((WORD*)(buf->pdata + buf->cur_pos_data))) = (WORD)(*(DWORD*)buf->value);
|
||||
buf->cur_pos_data += 2;
|
||||
*(WORD *)(buf->pdata + buf->cur_pos_data) = *(DWORD *)buf->value;
|
||||
buf->cur_pos_data += 2;
|
||||
}
|
||||
else if (pt->members[i].type == TOKEN_DWORD)
|
||||
{
|
||||
*(((DWORD*)(buf->pdata + buf->cur_pos_data))) = (DWORD)(*(DWORD*)buf->value);
|
||||
buf->cur_pos_data += 4;
|
||||
*(DWORD *)(buf->pdata + buf->cur_pos_data) = *(DWORD *)buf->value;
|
||||
buf->cur_pos_data += 4;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1230,8 +1230,8 @@ static BOOL parse_object_members_list(parse_buffer * buf)
|
|||
return FALSE;
|
||||
if (pt->members[i].type == TOKEN_FLOAT)
|
||||
{
|
||||
*(((float*)(buf->pdata + buf->cur_pos_data))) = (float)(*(float*)buf->value);
|
||||
buf->cur_pos_data += 4;
|
||||
*(float *)(buf->pdata + buf->cur_pos_data) = *(float *)buf->value;
|
||||
buf->cur_pos_data += 4;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue