diff --git a/src/emu/debugint/debugint.c b/src/emu/debugint/debugint.c index 0f8569e218c..918d8dd5335 100644 --- a/src/emu/debugint/debugint.c +++ b/src/emu/debugint/debugint.c @@ -956,7 +956,7 @@ static void process_string(DView *dv, const char *str) downcast(dv->view)->set_expression(str); break; case DVT_CONSOLE: - if(!dv->editor.str[0]) + if(!dv->editor.str[(long)0]) debug_cpu_get_visible_cpu(dv->machine)->debug()->single_step(); else debug_console_execute_command(dv->machine, str, 1); diff --git a/src/emu/devintrf.h b/src/emu/devintrf.h index f1f32810524..ed7c058d0c3 100644 --- a/src/emu/devintrf.h +++ b/src/emu/devintrf.h @@ -545,7 +545,7 @@ protected: { public: optional_device(device_t &base, const char *tag) : auto_finder_type<_DeviceClass *, false>(base, tag) { } - virtual void findit(device_t &base) { this->set_target(downcast<_DeviceClass *>(find_device(base, this->m_tag))); } + virtual void findit(device_t &base) { this->set_target(downcast<_DeviceClass *>(this->find_device(base, this->m_tag))); } }; // required devices are similar but throw an error if they are not found @@ -554,7 +554,7 @@ protected: { public: required_device(device_t &base, const char *tag) : auto_finder_type<_DeviceClass *, true>(base, tag) { } - virtual void findit(device_t &base) { this->set_target(downcast<_DeviceClass *>(find_device(base, this->m_tag))); } + virtual void findit(device_t &base) { this->set_target(downcast<_DeviceClass *>(this->find_device(base, this->m_tag))); } }; // optional shared pointer finder @@ -563,7 +563,7 @@ protected: { public: optional_shared_ptr(device_t &base, const char *tag) : auto_finder_type<_PointerType *, false>(base, tag) { } - virtual void findit(device_t &base) { this->set_target(reinterpret_cast<_PointerType *>(find_shared_ptr(base, this->m_tag))); } + virtual void findit(device_t &base) { this->set_target(reinterpret_cast<_PointerType *>(this->find_shared_ptr(base, this->m_tag))); } }; // required shared pointer finder @@ -572,7 +572,7 @@ protected: { public: required_shared_ptr(device_t &base, const char *tag) : auto_finder_type<_PointerType *, true>(base, tag) { } - virtual void findit(device_t &base) { this->set_target(reinterpret_cast<_PointerType *>(find_shared_ptr(base, this->m_tag))); } + virtual void findit(device_t &base) { this->set_target(reinterpret_cast<_PointerType *>(this->find_shared_ptr(base, this->m_tag))); } }; // optional shared pointer size finder diff --git a/src/emu/emualloc.h b/src/emu/emualloc.h index 6df6114f7ca..e4ff11a424c 100644 --- a/src/emu/emualloc.h +++ b/src/emu/emualloc.h @@ -220,13 +220,13 @@ inline void *operator new[](std::size_t size) throw (std::bad_alloc) return result; } -inline void operator delete(void *ptr) +inline void operator delete(void *ptr) throw() { if (ptr != NULL) free_file_line(ptr, NULL, 0); } -inline void operator delete[](void *ptr) +inline void operator delete[](void *ptr) throw() { if (ptr != NULL) free_file_line(ptr, NULL, 0);