summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/dvwpoints.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/debug/dvwpoints.cpp')
-rw-r--r--src/emu/debug/dvwpoints.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/dvwpoints.cpp b/src/emu/debug/dvwpoints.cpp
index a0e5befe017..2ab1fc6a0bf 100644
--- a/src/emu/debug/dvwpoints.cpp
+++ b/src/emu/debug/dvwpoints.cpp
@@ -79,7 +79,7 @@ static int cTypeAscending(const void* a, const void* b)
{
const device_debug::watchpoint* left = *(device_debug::watchpoint**)a;
const device_debug::watchpoint* right = *(device_debug::watchpoint**)b;
- return left->type() - right->type();
+ return int(left->type()) - int(right->type());
}
static int cTypeDescending(const void* a, const void* b)
@@ -229,8 +229,8 @@ void debug_view_watchpoints::gather_watchpoints()
device_debug &debugInterface = *source.device()->debug();
for (int spacenum = 0; spacenum < debugInterface.watchpoint_space_count(); ++spacenum)
{
- for (device_debug::watchpoint *wp = debugInterface.watchpoint_first(spacenum); wp != nullptr; wp = wp->next())
- m_buffer.push_back(wp);
+ for (const auto &wp : debugInterface.watchpoint_vector(spacenum))
+ m_buffer.push_back(wp.get());
}
}
@@ -330,7 +330,7 @@ void debug_view_watchpoints::view_update()
linebuf.put('-');
util::stream_format(linebuf, "%0*X", wp->space().addrchars(), wp->address() + wp->length() - 1);
pad_ostream_to_length(linebuf, tableBreaks[4]);
- linebuf << types[wp->type() & 3];
+ linebuf << types[int(wp->type())];
pad_ostream_to_length(linebuf, tableBreaks[5]);
if (strcmp(wp->condition(), "1"))
linebuf << wp->condition();