summaryrefslogtreecommitdiff
path: root/python/src/sa/rule.pxi
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2013-06-02 14:55:53 -0400
committerVictor Chahuneau <vchahune@cs.cmu.edu>2013-06-02 14:55:53 -0400
commit8ef5c9b0e15c45b09a22fd89a4ed7b0e180a9d2b (patch)
tree6b594a485a0fea36c1765e58c9c13b95600950d0 /python/src/sa/rule.pxi
parentcd5190d525b911c8fecd50ada5f57d879bcd9779 (diff)
Possible fix for #13
- use IntList .len instead of len() which can return long - a bit of code cleanup - upgrade to Cython 0.19
Diffstat (limited to 'python/src/sa/rule.pxi')
-rw-r--r--python/src/sa/rule.pxi2
1 files changed, 1 insertions, 1 deletions
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