Skip to content

Commit

Permalink
Merge pull request #167 from felixonmars/cython-typing
Browse files Browse the repository at this point in the history
Fix some types in Cython version
  • Loading branch information
lilydjwg authored Jul 24, 2021
2 parents e330a0e + 1994658 commit c5b2298
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cython/swapview.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ cdef int find_size(char *s):
s_tmp[0] = 0
return atoi(s)

def filesize(int size):
def filesize(size_t size):
cdef int unit
cdef float left

Expand All @@ -46,6 +46,7 @@ def getSwapFor(int pid):
cdef char * line = NULL
cdef size_t l = 0
cdef FILE* cfile
cdef ssize_t read

try:
comm = open('/proc/%d/cmdline' % pid).read()
Expand Down

0 comments on commit c5b2298

Please sign in to comment.