From 5871cbe8d3100f17dbe9642bbd7b417b60ca38f0 Mon Sep 17 00:00:00 2001 From: Victor Chahuneau Date: Sun, 2 Jun 2013 14:55:53 -0400 Subject: Possible fix for #13 - use IntList .len instead of len() which can return long - a bit of code cleanup - upgrade to Cython 0.19 --- python/src/sa/rule.pxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/src/sa/rule.pxi') diff --git a/python/src/sa/rule.pxi b/python/src/sa/rule.pxi index 98fbac76..4f0ea74f 100644 --- a/python/src/sa/rule.pxi +++ b/python/src/sa/rule.pxi @@ -189,4 +189,4 @@ cdef class Rule: def alignments(self): for point in self.word_alignments: - yield point/65536, point%65536 + yield point / ALIGNMENT_CODE, point % ALIGNMENT_CODE -- cgit v1.2.3