mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
d3dcompiler: Get rid of a couple of redundant casts.
This commit is contained in:
parent
871967d0fb
commit
aab72562d5
@ -1688,7 +1688,7 @@ struct hlsl_ir_node *make_assignment(struct hlsl_ir_node *left, enum parse_assig
|
||||
|
||||
static int compare_hlsl_types_rb(const void *key, const struct wine_rb_entry *entry)
|
||||
{
|
||||
const char *name = (const char *)key;
|
||||
const char *name = key;
|
||||
const struct hlsl_type *type = WINE_RB_ENTRY_VALUE(entry, const struct hlsl_type, scope_entry);
|
||||
|
||||
if (name == type->name)
|
||||
@ -1825,7 +1825,7 @@ static int compare_param_hlsl_types(const struct hlsl_type *t1, const struct hls
|
||||
|
||||
static int compare_function_decl_rb(const void *key, const struct wine_rb_entry *entry)
|
||||
{
|
||||
const struct list *params = (const struct list *)key;
|
||||
const struct list *params = key;
|
||||
const struct hlsl_ir_function_decl *decl = WINE_RB_ENTRY_VALUE(entry, const struct hlsl_ir_function_decl, entry);
|
||||
int params_count = params ? list_count(params) : 0;
|
||||
int decl_params_count = decl->parameters ? list_count(decl->parameters) : 0;
|
||||
@ -1860,7 +1860,7 @@ static const struct wine_rb_functions hlsl_ir_function_decl_rb_funcs =
|
||||
|
||||
static int compare_function_rb(const void *key, const struct wine_rb_entry *entry)
|
||||
{
|
||||
const char *name = (const char *)key;
|
||||
const char *name = key;
|
||||
const struct hlsl_ir_function *func = WINE_RB_ENTRY_VALUE(entry, const struct hlsl_ir_function,entry);
|
||||
|
||||
return strcmp(name, func->name);
|
||||
|
Loading…
Reference in New Issue
Block a user