mirror of
https://github.com/libretro/Mu.git
synced 2026-11-16 09:01:12 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user