Skip to content
Snippets Groups Projects
Commit e2c94236 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard
Browse files

vkd3d-shader/hlsl: Properly compare integers in compare_function_decl_rb().

parent 790ab754
No related branches found
No related tags found
No related merge requests found
......@@ -847,8 +847,8 @@ static int compare_function_decl_rb(const void *key, const struct rb_entry *entr
struct list *p1cur, *p2cur;
int r;
if (params_count != decl_params_count)
return params_count - decl_params_count;
if ((r = vkd3d_u32_compare(params_count, decl_params_count)))
return r;
p1cur = params ? list_head(params) : NULL;
p2cur = decl->parameters ? list_head(decl->parameters) : NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment