summaryrefslogtreecommitdiffstats
path: root/src/emu/emucore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/emucore.cpp')
-rw-r--r--src/emu/emucore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/emucore.cpp b/src/emu/emucore.cpp
index 26c23ac19fe..d4466cd09fc 100644
--- a/src/emu/emucore.cpp
+++ b/src/emu/emucore.cpp
@@ -82,7 +82,7 @@ void report_bad_cast(const std::type_info &src_type, const std::type_info &dst_t
void report_bad_device_cast(const device_t *dev, const std::type_info &src_type, const std::type_info &dst_type)
{
throw emu_fatalerror("Error: bad downcast<> or device<>. Tried to convert the device %s (%s) of type %s to a %s, which are incompatible.\n",
- dev->tag(), dev->name(), src_type.name(), dst_type.name());
+ dev->tag().c_str(), dev->name(), src_type.name(), dst_type.name());
}
void fatalerror(const char *format, ...)