Commit 9781b543 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d3dxof: Remove useless casts.

parent a777fd85
...@@ -1208,13 +1208,13 @@ static BOOL parse_object_members_list(parse_buffer * buf) ...@@ -1208,13 +1208,13 @@ static BOOL parse_object_members_list(parse_buffer * buf)
return FALSE; return FALSE;
if (pt->members[i].type == TOKEN_WORD) if (pt->members[i].type == TOKEN_WORD)
{ {
*(((WORD*)(buf->pdata + buf->cur_pos_data))) = (WORD)(*(DWORD*)buf->value); *(WORD *)(buf->pdata + buf->cur_pos_data) = *(DWORD *)buf->value;
buf->cur_pos_data += 2; buf->cur_pos_data += 2;
} }
else if (pt->members[i].type == TOKEN_DWORD) else if (pt->members[i].type == TOKEN_DWORD)
{ {
*(((DWORD*)(buf->pdata + buf->cur_pos_data))) = (DWORD)(*(DWORD*)buf->value); *(DWORD *)(buf->pdata + buf->cur_pos_data) = *(DWORD *)buf->value;
buf->cur_pos_data += 4; buf->cur_pos_data += 4;
} }
else else
{ {
...@@ -1230,8 +1230,8 @@ static BOOL parse_object_members_list(parse_buffer * buf) ...@@ -1230,8 +1230,8 @@ static BOOL parse_object_members_list(parse_buffer * buf)
return FALSE; return FALSE;
if (pt->members[i].type == TOKEN_FLOAT) if (pt->members[i].type == TOKEN_FLOAT)
{ {
*(((float*)(buf->pdata + buf->cur_pos_data))) = (float)(*(float*)buf->value); *(float *)(buf->pdata + buf->cur_pos_data) = *(float *)buf->value;
buf->cur_pos_data += 4; buf->cur_pos_data += 4;
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment