8000 BUG: fix compiler warnings · numpy/numpy@2e6c104 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e6c104

Browse files
mattipcharris
authored andcommitted
BUG: fix compiler warnings
1 parent 3b7fd8a commit 2e6c104

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

numpy/core/src/umath/matmul.c.src

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,18 +272,16 @@ BOOL_matmul_inner_noblas(void *_ip1, npy_intp is1_m, npy_intp is1_n,
272272

273273
{
274274
npy_intp m, n, p;
275-
npy_intp ib1_n, ib2_n, ib2_p, ob_p;
275+
npy_intp ib2_p, ob_p;
276276
char *ip1 = (char *)_ip1, *ip2 = (char *)_ip2, *op = (char *)_op;
277277

278-
ib1_n = is1_n * dn;
279-
ib2_n = is2_n * dn;
280278
ib2_p = is2_p * dp;
281279
ob_p = os_p * dp;
282280

283281
for (m = 0; m < dm; m++) {
284282
for (p = 0; p < dp; p++) {
285-
npy_bool *ip1tmp = ip1;
286-
npy_bool *ip2tmp = ip2;
283+
char *ip1tmp = ip1;
284+
char *ip2tmp = ip2;
287285
*(npy_bool *)op = NPY_FALSE;
288286
for (n = 0; n < dn; n++) {
289287
npy_bool val1 = (*(npy_bool *)ip1tmp);

0 commit comments

Comments
 (0)
0