diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/emu/debug/express.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/debug/express.cpp b/src/emu/debug/express.cpp index 8d3a15b6e95..8363928e5cb 100644 --- a/src/emu/debug/express.cpp +++ b/src/emu/debug/express.cpp @@ -585,11 +585,11 @@ expression_error symbol_table::expression_get_space(const char *tag, int &spacen return expression_error::NO_SUCH_MEMORY_SPACE; } - // allow short references to data, I/O and opcode spaces - if (spacename.empty() && spacenum != 0) + // search not required + if (spacename.empty() && (0 <= spacenum)) return expression_error::NONE; - // find space by name or take first populated space + // find space by name or take first populated space if required for (int i = 0; memory->max_space_count() > i; ++i) { if (memory->has_space(i) && (spacename.empty() || (memory->space(i).name() == spacename))) |