From 3cfd1e6cf1fc0cba5d3f0252a4e1e1c230dc7bfd Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 7 Jan 2019 13:41:10 +0100 Subject: [PATCH] compare: fix sign for compare of id --- spa/include/spa/pod/compare.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/include/spa/pod/compare.h b/spa/include/spa/pod/compare.h index dafb9099b..9d4c03594 100644 --- a/spa/include/spa/pod/compare.h +++ b/spa/include/spa/pod/compare.h @@ -39,7 +39,7 @@ static inline int spa_pod_compare_value(uint32_t type, const void *r1, const voi return 0; case SPA_TYPE_Bool: case SPA_TYPE_Id: - return *(int32_t *) r1 == *(uint32_t *) r2 ? 0 : 1; + return *(uint32_t *) r1 == *(uint32_t *) r2 ? 0 : 1; case SPA_TYPE_Int: return *(int32_t *) r1 - *(int32_t *) r2; case SPA_TYPE_Long: