Skip to content

Commit

Permalink
Update bycython.pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
roy-ht committed Feb 10, 2024
1 parent b1d71aa commit cc32d48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/editdistance/bycython.pyx
Expand Up @@ -24,7 +24,7 @@ cpdef unsigned int eval(object a, object b) except 0xffffffffffffffff:
free(al)
free(bl)
return dist

cpdef bint eval_criterion(object a, object b, const unsigned int thr) except 0xffffffffffffffff:
cdef unsigned int i
cdef bint ret
Expand All @@ -39,7 +39,7 @@ cpdef bint eval_criterion(object a, object b, const unsigned int thr) except 0xf
free(bl)
return ret

cpdef unsigned int eval_dp(object a, object b) except 0xffffffffffffffff:
cpdef unsigned int eval_dp(object a, object b) except 0xffffffffffffffff:
cdef unsigned int i, dist
cdef int64_t *al = <int64_t *>malloc(len(a) * sizeof(int64_t))
for i in range(len(a)):
Expand All @@ -50,4 +50,4 @@ cpdef bint eval_criterion(object a, object b, const unsigned int thr) except 0xf
dist = edit_distance_dp(al, len(a), bl, len(b))
free(al)
free(bl)
return dist
return dist

0 comments on commit cc32d48

Please sign in to comment.