~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_dirstate_helpers_c.pyx

  • Committer: Andrew Bennetts
  • Date: 2007-08-06 05:15:58 UTC
  • mfrom: (2671 +trunk)
  • mto: (2535.3.33 repo-refactor)
  • mto: This revision was merged to the branch mainline in revision 2713.
  • Revision ID: andrew.bennetts@canonical.com-20070806051558-r2hfumxcwgotrp6a
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
cdef extern from *:
33
33
    ctypedef unsigned long size_t
34
34
 
35
 
cdef extern from "stdint.h":
 
35
cdef extern from "_dirstate_helpers_c.h":
36
36
    ctypedef int intptr_t
37
37
 
38
38
 
108
108
    found = _my_memrchr(_s, _c[0], length)
109
109
    if found == NULL:
110
110
        return None
111
 
    return found - _s
 
111
    return <char*>found - <char*>_s
112
112
 
113
113
 
114
114
cdef int _is_aligned(void *ptr):