mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
fix several genuine issues found by coverity
This commit is contained in:
parent
805d1a815b
commit
bb7ca8d920
@ -687,7 +687,7 @@ void gt_device_base::ri_xfer_w(offs_t offset, u32 data, u32 mem_mask)
|
||||
|
||||
// initiate ri line draw
|
||||
u32 address = m_ri_initial_address;
|
||||
u32 error = m_ri_initial_error;
|
||||
s32 error = m_ri_initial_error;
|
||||
|
||||
for (int i = 0; i < m_ri_stop_count; i++)
|
||||
{
|
||||
@ -1571,7 +1571,7 @@ u32 gtdb_device::vram_r(offs_t offset, const bool linear) const
|
||||
return gt_device_base::vram_r(offset, linear);
|
||||
}
|
||||
|
||||
void gtdb_device::vram_w(const offs_t offset, const u32 data, const u32 mem_mask, const bool linear) const
|
||||
void gtdb_device::vram_w(const offs_t offset, const u32 data, u32 mem_mask, const bool linear) const
|
||||
{
|
||||
if (m_control & GFX_HILITE_SEL)
|
||||
{
|
||||
|
@ -460,7 +460,7 @@ void nscsi_cdrom_device::scsi_command()
|
||||
"Session info",
|
||||
"Full TOC",
|
||||
"PMA",
|
||||
"ATIP"
|
||||
"ATIP",
|
||||
"Reserved 5",
|
||||
"Reserved 6",
|
||||
"Reserved 7",
|
||||
|
@ -3043,11 +3043,11 @@ void r4000_base_device::cp1_execute(u32 const op)
|
||||
// TODO: MIPS3 only
|
||||
switch (op & 0x3f)
|
||||
{
|
||||
case 0x02a00020: // CVT.S.L
|
||||
case 0x20: // CVT.S.L
|
||||
if ((SR & SR_FR) || !(op & ODD_REGS))
|
||||
cp1_set(FDREG, i64_to_f32(s64(m_f[FSREG])).v);
|
||||
break;
|
||||
case 0x02a00021: // CVT.D.L
|
||||
case 0x21: // CVT.D.L
|
||||
if ((SR & SR_FR) || !(op & ODD_REGS))
|
||||
cp1_set(FDREG, i64_to_f64(s64(m_f[FSREG])).v);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user