Permalink
Browse files

Fix warning about array indices.

  • Loading branch information...
1 parent a952082 commit abb2171c232b5d07fedac9eed55a6de5871cf120 @ali1234 committed Apr 26, 2017
Showing with 3 additions and 3 deletions.
  1. +3 −3 config_bt8x8_pal.py
View
@@ -22,9 +22,9 @@
line_start_shift = ((line_start_range[1] - line_start_range[0]) / 2)
-line_start_pre = [line_start - (bit_width * 15), line_start - (bit_width * 2)]
-line_start_post = [line_start + (bit_width * 2), line_start + (bit_width * 15)]
-line_start_frcmrag = [line_start + (bit_width * 17), line_start + (bit_width * 40)]
+line_start_pre = [int(line_start - (bit_width * 15)), int(line_start - (bit_width * 2))]
+line_start_post = [int(line_start + (bit_width * 2)), int(line_start + (bit_width * 15))]
+line_start_frcmrag = [int(line_start + (bit_width * 17)), int(line_start + (bit_width * 40))]
bits = numpy.array([int(line_start + (x*bit_width)) for x in range((45*8)+9)])
bit_lengths = (bits[1:] - bits[:-1])

0 comments on commit abb2171

Please sign in to comment.