Skip to content

Commit

Permalink
Fix int() type for latest python
Browse files Browse the repository at this point in the history
  • Loading branch information
davelab6 committed Jun 5, 2014
1 parent 46f37bd commit b7ad5fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FontLab/Macros/System/Modules/fontQA_Hints.py
Expand Up @@ -99,7 +99,7 @@ def _testFont(self, TheFont):
if result == None:
result = []
myBBox = trueBBox(anyGlyph)
myRange = xrange(myBBox.ll.y, myBBox.ur.y + 1)
myRange = xrange(int(myBBox.ll.y), int(myBBox.ur.y + 1))
for anyHHint in anyGlyph.hhints:
if anyHHint.position not in myRange or anyHHint.position + anyHHint.width not in myRange:
result.append('%s: (p=%s, w=%s)' % (anyGlyph.name, anyHHint.position, anyHHint.width))
Expand All @@ -124,7 +124,7 @@ def _testFont(self, TheFont):
if result == None:
result = []
myBBox = trueBBox(anyGlyph)
myRange = xrange(myBBox.ll.x, myBBox.ur.x + 1)
myRange = xrange(int(myBBox.ll.x), int(myBBox.ur.x + 1))
for anyVHint in anyGlyph.vhints:
if anyVHint.position not in myRange or anyVHint.position + anyVHint.width not in myRange:
result.append('%s: (p=%s, w=%s)' % (anyGlyph.name, anyVHint.position, anyVHint.width))
Expand Down

0 comments on commit b7ad5fb

Please sign in to comment.