mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07: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:
committed by
Alexandre Julliard
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;
|
struct list *p1cur, *p2cur;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
if (params_count != decl_params_count)
|
if ((r = vkd3d_u32_compare(params_count, decl_params_count)))
|
||||||
return params_count - decl_params_count;
|
return r;
|
||||||
|
|
||||||
p1cur = params ? list_head(params) : NULL;
|
p1cur = params ? list_head(params) : NULL;
|
||||||
p2cur = decl->parameters ? list_head(decl->parameters) : NULL;
|
p2cur = decl->parameters ? list_head(decl->parameters) : NULL;
|
||||||
|
Reference in New Issue
Block a user