libretro: fix return type of compare_nof_true_bits as qsort expects int

This commit is contained in:
Craig Carnell
2026-09-26 09:28:44 +01:00
parent 63f7f08f72
commit f10b409ad4

View File

@@ -172,7 +172,7 @@ char* get_imm_str_s32(void);
/* Stuff to build the opcode handler jump table */
static void build_opcode_table(void);
static int32_t valid_ea(uint opcode, uint mask);
static int32_t DECL_SPEC compare_nof_true_bits(const void *aptr, const void *bptr);
static int DECL_SPEC compare_nof_true_bits(const void *aptr, const void *bptr);
/* used to build opcode handler jump table */
typedef struct
@@ -3177,7 +3177,7 @@ static int32_t valid_ea(uint opcode, uint mask)
}
/* Used by qsort */
static int32_t DECL_SPEC compare_nof_true_bits(const void *aptr, const void *bptr)
static int DECL_SPEC compare_nof_true_bits(const void *aptr, const void *bptr)
{
uint a = ((const opcode_struct*)aptr)->mask;
uint b = ((const opcode_struct*)bptr)->mask;