Merge pull request #40 from cscd98/psp-fix

libretro: fix return type of compare_nof_true_bits as qsort expects int
This commit is contained in:
Stephanie Gawroriski
2026-09-26 09:49:11 -04:00
committed by GitHub

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;