diff options
author | 2015-12-04 07:02:45 +0100 | |
---|---|---|
committer | 2015-12-04 07:02:45 +0100 | |
commit | 0c56ac848dd0eba359500d444ecbb51f215ff5b9 (patch) | |
tree | ad3444449470cec94ccaffd174c5a4d1bc90d1e1 /src/devices/cpu/drcbec.cpp | |
parent | 68f961927a156c47cb444c1f66258a89342d0205 (diff) |
clang-modernize part 3
Diffstat (limited to 'src/devices/cpu/drcbec.cpp')
-rw-r--r-- | src/devices/cpu/drcbec.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/cpu/drcbec.cpp b/src/devices/cpu/drcbec.cpp index d3e1538c1ba..5b494c947f3 100644 --- a/src/devices/cpu/drcbec.cpp +++ b/src/devices/cpu/drcbec.cpp @@ -313,7 +313,7 @@ void drcbe_c::reset() { // reset our hash tables m_hash.reset(); - m_hash.set_default_codeptr(NULL); + m_hash.set_default_codeptr(nullptr); } @@ -330,7 +330,7 @@ void drcbe_c::generate(drcuml_block &block, const instruction *instlist, UINT32 // begin codegen; fail if we can't drccodeptr *cachetop = m_cache.begin_codegen(numinst * sizeof(drcbec_instruction) * 4); - if (cachetop == NULL) + if (cachetop == nullptr) block.abort(); // compute the base by aligning the cache top to an even multiple of drcbec_instruction @@ -528,7 +528,7 @@ int drcbe_c::execute(code_handle &entry) case MAKE_OPCODE_SHORT(OP_HASHJMP, 4, 0): // HASHJMP mode,pc,handle sp = 0; newinst = (const drcbec_instruction *)m_hash.get_codeptr(PARAM0, PARAM1); - if (newinst == NULL) + if (newinst == nullptr) { assert(sp < ARRAY_LENGTH(callstack)); m_state.exp = PARAM1; |