修正编译警告

This commit is contained in:
anod 2023-03-11 15:12:58 +08:00
parent 0fb04f0989
commit ee1b82ae8e

View File

@ -62,7 +62,6 @@ cheat_error_t overwrite_current_cheat( acl_entryid_t id, u16 value )
if( setting.chtId == 0 ) return CCHT_NOT_INIT;
u16 index = ENT_HOLE(id);
u16 option = ENT_KEY(id);
if( index == 0 ) return CCHT_INVALID;
if( index <= setting.entLen )
@ -436,7 +435,7 @@ static void rom_append_cheatproc( int mode, CodeLocation start, u16 bindkey, u32
{
if( (j < 4) && (j & 1) )
{
u8 *p = start++;
u8 *p = (u8*)start++;
acl_entry_get_armcode(j, (u32*)p);
*p = j>1 ? val >> 8 : val & 0xff;
}