mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Properly compare integers in compare_function_decl_rb().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
790ab754d5
commit
e2c9423611
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user