File: 212-Fix-out-of-bounds-loop-index-in-test.patch

package info (click to toggle)
numba 0.56.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,672 kB
  • sloc: python: 183,651; ansic: 15,370; cpp: 2,259; javascript: 424; sh: 308; makefile: 174
file content (25 lines) | stat: -rw-r--r-- 932 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 64743c98e76ebfb3586a194c6ba2e6b67202f826 Mon Sep 17 00:00:00 2001
From: Stuart Archibald <stuartarchibald@users.noreply.github.com>
Origin: https://github.com/numba/numba/pull/8639
Date: Mon, 28 Nov 2022 15:08:02 +0000
Subject: [PATCH 12/20] Fix out of bounds loop index in test.

As title.
---
 numba/tests/test_ir.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/numba/tests/test_ir.py b/numba/tests/test_ir.py
index 8704c902897..819c784694d 100644
--- a/numba/tests/test_ir.py
+++ b/numba/tests/test_ir.py
@@ -432,7 +432,7 @@ def check_diffstr(string, pointing_at=[]):
             blk = z_ir.blocks[label]
             ref = blk.body[:-1]
             idx = None
-            for i in range(len(ref)):
+            for i in range(len(ref) - 1):
                 # look for two adjacent Del
                 if (isinstance(ref[i], ir.Del) and
                         isinstance(ref[i + 1], ir.Del)):