[PATCH] d3dxof: Remove useless casts to self
Michael Stefaniuc
mstefani at winehq.org
Mon Feb 11 15:36:30 CST 2019
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/d3dxof/parsing.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c
index f7724ec191..a152763a00 100644
--- a/dlls/d3dxof/parsing.c
+++ b/dlls/d3dxof/parsing.c
@@ -1213,7 +1213,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
}
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;
}
else
@@ -1230,7 +1230,7 @@ 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);
+ *((float*)(buf->pdata + buf->cur_pos_data)) = *(float*)buf->value;
buf->cur_pos_data += 4;
}
else
--
2.20.1
More information about the wine-devel
mailing list