Permalink
Browse files

Minor changes

  • Loading branch information...
buffer committed May 4, 2012
1 parent 997599f commit 6e3945b4fae4718d643c38b37777e3ff6a037c6b
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/pylibemu.pyx
View
@@ -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:

0 comments on commit 6e3945b

Please sign in to comment.