summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/drcuml.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-04-12 08:05:15 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-04-12 08:05:43 +0200
commit7faba31b1b8dcd6caa5f1b651d2693106de08d35 (patch)
treec528d5479eee247ee5305df53a298a09b594fccc /src/emu/cpu/drcuml.c
parent15a464dac99052edc0645374a77ecef8d1a65b0d (diff)
There is no implicit conversion to char* in std::string (nw)
Diffstat (limited to 'src/emu/cpu/drcuml.c')
-rw-r--r--src/emu/cpu/drcuml.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/drcuml.c b/src/emu/cpu/drcuml.c
index e6596f3c9bd..ca52ee34e3e 100644
--- a/src/emu/cpu/drcuml.c
+++ b/src/emu/cpu/drcuml.c
@@ -253,7 +253,7 @@ const char *drcuml_state::symbol_find(void *base, UINT32 *offset)
// return the offset and name
if (offset != NULL)
*offset = search - cursym->m_base;
- return cursym->m_name;
+ return cursym->m_name.c_str();
}
// not found; return NULL
@@ -396,7 +396,7 @@ void drcuml_block::append_comment(const char *format, ...)
char *comment = (char *)m_drcuml.cache().alloc_temporary(temp.len() + 1);
if (comment == NULL)
return;
- strcpy(comment, temp);
+ strcpy(comment, temp.c_str());
// add an instruction with a pointer
append().comment(comment);
@@ -524,11 +524,11 @@ const char *drcuml_block::get_comment_text(const instruction &inst, astring &com
{
// comments return their strings
if (inst.opcode() == OP_COMMENT)
- return comment.cpy(inst.param(0).string());
+ return comment.cpy(inst.param(0).string()).c_str();
// mapvars comment about their values
else if (inst.opcode() == OP_MAPVAR)
- return comment.format("m%d = $%X", (int)inst.param(0).mapvar() - MAPVAR_M0, (UINT32)inst.param(1).immediate());
+ return comment.format("m%d = $%X", (int)inst.param(0).mapvar() - MAPVAR_M0, (UINT32)inst.param(1).immediate()).c_str();
// everything else is NULL
return NULL;