Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
buffer committed May 4, 2012
1 parent 997599f commit 6e3945b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/pylibemu.pyx
Expand Up @@ -616,16 +616,13 @@ cdef class Emulator:
return 0

def cpu_reg32_get(self, reg):
cdef c_emu_cpu *_cpu
cdef c_emu_cpu *_cpu

if self._emu is NULL:
return -1

_cpu = emu_cpu_get(self._emu)

val = emu_cpu_reg32_get(_cpu, reg)

return val
return <uint32_t>emu_cpu_reg32_get(_cpu, reg)

def cpu_step(self):
if self._emu is NULL:
Expand Down

0 comments on commit 6e3945b

Please sign in to comment.